📄 book_sc.sql
字号:
create database book_sc;use book_sc;create table customers( customerid int unsigned not null auto_increment primary key, name char(60) not null, address char(80) not null, city char(30) not null, state char(20), zip char(10), country char(20) not null);create table orders( orderid int unsigned not null auto_increment primary key, customerid int unsigned not null, amount float(6,2), date date not null, order_status char(10), ship_name char(60) not null, ship_address char(80) not null, ship_city char(30) not null, ship_state char(20), ship_zip char(10), ship_country char(20) not null);create table books( isbn char(13) not null primary key, author char(80), title char(100), catid int unsigned, price float(4,2) not null, description varchar(255));create table categories( catid int unsigned not null auto_increment primary key, catname char(60) not null);create table order_items( orderid int unsigned not null, isbn char(13) not null, item_price float(4,2) not null, quantity tinyint unsigned not null, primary key (orderid, isbn));create table admin( username char(16) not null primary key, password char(40) not null);grant select, insert, update, deleteon book_sc.*to book_sc@localhost identified by 'password';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -