SQL专项练习29
count(*) == count(1)
count(列名) 忽略空值
添加外键
由于外键在两表的名称一致,需要指定aid的来源表 manuscript.aid
ALTER TABLE manuscript ADD CONSTRAINT FK_aid FOREIGN KEY (manuscript.aid) REFERENCES author (aid)
SQL专项练习 文章被收录于专栏
SQL专项每日练习,错题
count(*) == count(1)
count(列名) 忽略空值
添加外键
由于外键在两表的名称一致,需要指定aid的来源表 manuscript.aid
ALTER TABLE manuscript ADD CONSTRAINT FK_aid FOREIGN KEY (manuscript.aid) REFERENCES author (aid)
SQL专项每日练习,错题
相关推荐