-- 创建students表,定义sno为主键
go
create table students(
sno varchar(6) not null,-- 添加非空约束
sname varchar(8) null, --添加可控约束,其实默认就是这样
sex char(2
4.对主键的操作
最新推荐文章于 2022-10-25 10:57:49 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
-- 创建students表,定义sno为主键
go
create table students(
sno varchar(6) not null,-- 添加非空约束
sname varchar(8) null, --添加可控约束,其实默认就是这样
sex char(2