在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

数据库SQL语句的使用

92次阅读
没有评论

共计 2236 个字符,预计需要花费 6 分钟才能阅读完成。

这篇文章主要讲解了“数据库 SQL 语句的使用”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着丸趣 TV 小编的思路慢慢深入,一起来研究和学习“数据库 SQL 语句的使用”吧!

1、创建数据库
create database if not exists cs2013;
2、创建数据库表格
create table if not exists comp (
 id int not null primary key auto_increment ,
 pid varchar(30) not null unique ,
 cname varchar(30) not null ,
 ename varchar(30) not null ,
 grade varchar(30) not null , 
 sex int not null ,
 clothe varchar(15) not null
)default charset = utf8;
create table if not exists team (
 id int not null primary key auto_increment ,
 cname varchar(30) not null ,
 ename varchar(30) not null ,
 coach0 int not null , 
 coach2 int not null ,
 stu0 int not null ,
 stu1 int not null ,
 stu2 int not null ,
 isgirls int not null ,
 email varchar(30) not null ,
 phone varchar(15) not null ,
 foreign key (coach0) references comp(id) ,
 foreign key (coach2) references comp(id) ,
 foreign key (stu0) references comp(id) ,
 foreign key (stu1) references comp(id) ,
 foreign key (stu2) references comp(id)
)default charset = utf8;
create table if not exists college (
 id int not null primary key auto_increment,
 cname varchar(30) not null ,
 ename varchar(30) not null ,
 teamcnt int not null
)default charset = utf8;
create table if not exists rc (
 id int not null primary key auto_increment ,
 college int not null ,
 team int not null ,
 date date not null ,
 foreign key (college) references college (id) ,
 foreign key (team) references team (id)
)default charset = utf8;
create table if not exists room (
 id int not null primary key auto_increment,
 name varchar(30) not null ,
 totcnt int not null ,
 regcnt int not null ,
 price double not null
)default charset = utf8;
create table if not exists hotel (
 id int not null primary key auto_increment,
 name varchar(30) not null ,
 room0 int not null ,
 room1 int not null ,
 room2 int not null ,
 foreign key (room0) references room (id) ,
 foreign key (room1) references room (id) ,
 foreign key (room2) references room (id)
)default charset = utf8;
create table if not exists rh (
 id int not null primary key auto_increment,
 college int not null ,
 hotel int not null ,
 date date not null ,
 foreign key (college) references college (id) ,
 foreign key (hotel) references hotel (id)
)default charset = utf8;

感谢各位的阅读,以上就是“数据库 SQL 语句的使用”的内容了,经过本文的学习后,相信大家对数据库 SQL 语句的使用这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是丸趣 TV,丸趣 TV 小编将为大家推送更多相关知识点的文章,欢迎关注!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-01发表,共计2236字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 日本少妇浓毛bbwbbwbbw | 一级毛片特级毛片黄毛片 | 亚洲国产情侣偷自在线二页 | 一级毛片免费不卡在线视频 | 国产午夜福利片在线观看 | 欧洲呦女网站 | 天天操天天摸天天碰 | 污污内射在线观看一区二区少妇 | 香蕉伊大在线中字色中文 | 国产精品一区牛牛影视 | 奇米影视狠狠狠天天777 | 亚洲国产日韩在线观频 | 黄动漫在线免费观看 | 国产精品98福利小视频 | 中国一级毛片视频免费看 | 国内一级一级毛片a免费 | 成人国产在线看不卡 | 伊人久久精品无码av一区 | 2020无码专区人妻系列日韩 | 亚洲av无码一区二区三区网站 | 亚洲欧美日韩一区高清中文字幕 | 一区二区三区精密机械 | 久久精品国产麻豆不卡 | 中文字幕久精品免费视频 | 日韩a无v码在线播放免费 | 欧美aaa毛片免费看 欧美aaa性bbb毛片 | 在线色国产 | 国内自拍露脸普通话对白在线 | 亚洲综合色一区二区三区小说 | 日本免费人成视频播放 | 国产亚洲99影院 | 国产精品一区二区久久不卡 | 99精品视频在线免费观看 | 少妇放荡的呻吟干柴烈火动漫 | 18禁在线永久免费观看 | 午夜欧美成人久久久久久 | 一级看片免费视频 | 青青草久热精品视频在线观看 | 日韩毛片一级 | 99国产精品九九视频免费看 | 九九九网站 |