createorders.sql

来自「数据库的加密以及密态查询」· SQL 代码 · 共 12 行

SQL
12
字号
create table orders(O_ORDERKEY	int not null primary key, O_CUSTKEY	int not null, O_ORDERSTATUS	char(1) not null,O_TOTALPRICE	decimal(10, 2) not null check(O_TOTALPRICE >= 0),O_ORDERDATE	date not null,O_ORDERPRIORITY	char(15) not null,O_CLERK		char(15) not null,O_SHIPPRIORITY	int not null,O_COMMENT	varchar(79) not null,foreign key(O_CUSTKEY) references customer(C_CUSTKEY))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?