SQL语句的基础

注意:
1.语句写完后用“分号;”代表这一句结束等于go
2.列结束用逗号,最后一列写完不用写逗号
3.符号一定是英文的

关键字:
主键:primary key
外键:foreign key 
非空索引:not null

创建数据库
create database test2;

删除数据库
drop database test2;

delete database test2

创建表
create table test
(
code varchar(20),
name varchar(20)
);

删除表:
drop table test1;

delete table test2

原文地址:https://www.cnblogs.com/yangchuanqi/p/7739511.html