create table student(表名)
(
ID int primary key identity(1,1),--ID自增,主键
name varchar(20) not null,--姓名
password varchar(20) not null,--密码
)
insert into student(name,password) values(‘小明‘,123) ----增加数据
delete from student ----删除一整个表的数据
delete from student where name=‘小明‘ ----删除对应name
update student set name=‘小东‘ where ID=1
select*from student ---查看一个表
select*from student where name=‘小明‘ ---查看过于小明的信息
drop table student ---删除表student
原文:https://www.cnblogs.com/howorld/p/14897760.html