我想創建一個下面的表,如果它不存在。創建一個表,如果它不存在,並創建一個序列,如果它不存在於Oracle
create table TEST (
id number NOT NULL PRIMARY KEY,
url varchar(1000) NOT NULL,
urlHash varchar(255) NOT NULL,
contentHash varchar(255),
modDate varchar(30),
contentLocation varchar(100),
status integer,
lastCrawlDate varchar(30)) ;
所以我的問題是一樣的東西這個 -
Create Table TEST if doesn't exist
以同樣的方式進行序列 -
create sequence test_seq start with 1 increment by 1 nomaxvalue;
事情是這樣的查詢將是序列too-
Create sequence test_sequence if doesn't exist
非常感謝你, – MirlvsMaximvs