SQL语句
drop table if exists Customers; #如果已有表customers则删除
create table Customers( #①表的创建
cust_id char(1) not null
);
insert into Customers #②在表中插入数据
values('A'),('B'),('C');
select * from Customers; #③查看表的数据
运行的结果:
知识点:
①表的创建
create table 表名(
列名 列的类型 [列的约束],
列名 列的类型 [列的约束],
... ...
列名 列的类型 [列的约束]
);
②查看表的数据
select 查询的内容 from 表名;