求一个sql语句创建表的例子,带索引的那种,希望详细点谢谢
1个回答
展开全部
CREATE TABLE WAREHOUSE (
WAREHOUSE_ID NUMBER NOT NULL,
WAREHOUSE_NAME VARCHAR2(100),
WAREHOUSE_CODE VARCHAR2(20) NOT NULL,
ADDRESS_ID NUMBER,
CREATED_DATE DATE,
CREATED_BY VARCHAR2(100),
UPDATED_DATE DATE,
UPDATED_BY VARCHAR2(100),
STATUS CHAR(1),
CONSTRAINT PK_WAREHOUSE PRIMARY KEY (WAREHOUSE_ID)
);
WAREHOUSE_ID NUMBER NOT NULL,
WAREHOUSE_NAME VARCHAR2(100),
WAREHOUSE_CODE VARCHAR2(20) NOT NULL,
ADDRESS_ID NUMBER,
CREATED_DATE DATE,
CREATED_BY VARCHAR2(100),
UPDATED_DATE DATE,
UPDATED_BY VARCHAR2(100),
STATUS CHAR(1),
CONSTRAINT PK_WAREHOUSE PRIMARY KEY (WAREHOUSE_ID)
);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询