摘要:
值没给, 就使用默认值 Create table stu6( Id int primary key, Name varchar(50) not null, Sex varchar(10)Default”男” ); 查看表结构 Desc stu6; Insert into stu6(id,name,s 阅读全文
posted @ 2021-04-13 09:12
啊阿啊
阅读(65)
评论(0)
推荐(0)
摘要:
主外键的关系,2个表之间建立管理关系之和,他们删除,更新操作都是受影响的。 ##引用完整性 学生表 Id 名字 性别 成绩表 Id 学生ID 成绩 Create table stu7( Id int primary key; Name varchar(50) ) Create table score 阅读全文
posted @ 2021-04-13 09:05
啊阿啊
阅读(98)
评论(0)
推荐(0)

浙公网安备 33010602011771号