增加:insert 增加 into 到 values 值
删除:delete删除 where条件
修改:update 修改 set 设置
查询:select 选择 from 来自 * 全部
增加操作示例:
增加:insert 增加 into 到 values 值
--例:
create table student(--学生
id int primary key identity,--学号
name varchar(10) not null,--姓名
age int check(age>0 and age<=150) not null,--年龄
sex varchar(2) check(sex='男' or sex='女') not null--性别
);
insert into student values();--增加数据放入表中
添加了两名学生。
删除操作示例:
删除:delete删除 where条件
delete st