学生表:student –—————– create table student( id mediumint auto_increment comment ‘主键id’, name varchar(30) comment ‘姓名’, age smallint comment ‘年龄’, primary key(id) ) engine = myisam, charset = utf8, comment = ‘学生’课程表:course –——————- create table course( id mediumint auto_increment comment ‘主键id’, name varchar(30) comment ‘课程名称’, primary key(id) ) engine = myisam, charset = utf8, comment = ‘课程’
讯享网学生课程表:stu_cour –————————- create table IF NOT EXISTS stu_cour( id mediumint auto_increment comment ‘主键id’, stu_id mediumint comment ‘学生表id’, cour_id mediumint comment ‘课程表id’, primary key(id) )
讯享网

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/142480.html