📄 table.sql
字号:
--drop table user_product;--drop table dept_product;--drop table dept_supplier_product;--drop table supplier_product;--drop table stockpile_product;--drop table storehouse_product;--drop table check_product;--drop table returnproduct_product;--drop table buyorder_product;--drop table employee_product;--create table user_product( --uidd number(10) primary key, --name varchar2(10) unique not null, --pwd varchar2(10) not null, --dept varchar2(20) not null, --qxian number(2) not null--);--create table employee_product( --employee_id number(10) primary key, --name varchar2(10) not null, --gender varchar2(5) not null, --identityCard varchar2(18) not null, --address varchar2(20) not null, --phone varchar2(15) not null, --email varchar2(20) not null, --dept varchar2(20) not null, --duty varchar2(10) not null, --hireDate varchar2(15) not null, --matureDate varchar2(15) not null--);--create table storehouse_product( --storehouse_id number(10) primary key, --address varchar2(25) not null, --phone varchar2(15) not null, --createDate varchar2(15) not null, --employee_id number(10) references employee_product(employee_id)--);--create table check_product( --check_id number(10) primary key, --card varchar2(20) unique not null, --product varchar2(15) not null, --type varchar2(15) not null, --quantity number(7) not null, --price number(5,2) not null, --ok varchar2(5) not null, --reason varchar(50) not null, --supplier varchar(25) not null, --employee_id number(10) references employee_product(employee_id)--);--create table stockpile_product( --stockPile_id number(10) primary key, --card varchar2(20) unique not null, --product varchar2(15) not null, --type varchar2(15) not null, --lastEnterDate varchar2(15) not null, --quantity number(10) not null, --price number(10,2) not null, --storehouse varchar2(30) not null--);--create table returnproduct_product( --return_id number(10) primary key, --card varchar2(20) unique not null, --product varchar2(15) not null, --type varchar2(15) not null, --quantity number(10) not null, --price number(10,2) not null, --ok varchar2(15) not null, --reason varchar(50) not null, --supplier varchar(25) not null--);--create table buyorder_product( --buyorder_id number(30) primary key, --product varchar2(30) not null, --quantity number(20) not null, --price number(10,2) not null,-- allPrice number(20,2) not null, --writeDate varchar2(15) , --insureDate varchar2(15) not null, --endDate varchar2(15) not null, --supplier varchar2(25) not null, --employee_id number(10) references employee_product(employee_id)--);--drop table hilo_product;--create table hilo_product(hi number(6));--insert into hilo_product values(10); --drop table dept_product;--create table dept_product( --dept_id number(10) primary key, --name varchar2(20) not null, --remark varchar2(50)--)--drop table supplier_product;--create table supplier_product(-- supplier_id number(10) primary key,-- name varchar2(20) not null,-- product varchar2(20) not null,-- address varchar2(30) not null,-- phone varchar2(15) not null,-- fax varchar2(15) not null,-- postalCode varchar2(10) not null,-- constactPerson varchar2(15) not null--)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -