Mysql中外键详解

Mysql中外键详解 1.定义外键的操做 2.这个外键的名字该如何定义? 3.一个表的外键必是另外一个表的主键【好比,若是不定义student中sno为主键,那么score的sno为外键就没法定义】mysql create table student( sno varchar(20) not null primary key, cno varchar(20) not null); create
相关文章
相关标签/搜索