CREATE TABLE info
(
snumb int primary key identity(1,1),
sname varchar(20),
sex bit,
birthday datetime check(birthday<getdate()),
[address] varchar(50),
tel varchar(30)
)
CREATE TABLE lesson
(
ccode varchar(5)primary key,
cname varchar(40),
cnum int
)
CREATE TABLE score
(
snumb int foreign key references info(snumb),
ccode varchar(5)foreign key references lesson(ccode),
score int check(score>0)
)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-10-13
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-14
  • 2021-10-19
相关资源
相似解决方案