select查询 实例集锦

select查询 实例集锦

ID:6321899

大小:51.50 KB

页数:10页

时间:2018-01-10

select查询 实例集锦_第1页
select查询 实例集锦_第2页
select查询 实例集锦_第3页
select查询 实例集锦_第4页
select查询 实例集锦_第5页
资源描述:

《select查询 实例集锦》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、select查询实例集锦例一:图书管理数据库  图书(总编号C(6),分类号C(8),书名C(16),作者C(6),出版单位C(20),单价N(6,2))  读者(借书证号C(4),单位C(8),姓名C(6),性别C(2),职称C(6),地址C(20))借阅(借书证号C(4),总编号C(6),借书日期D(8))Createtablebook(bidvarchar(6)primarykey,kindvarchar(8),bnamevarchar(16),bauthorvarchar(6),bpubvarchar(20),bpriceint(5)

2、);Createtablecarduser(uidvarchar(4)primarykey,upartvarchar(8),unamevarchar(6),usexenum('0','1','2'),ujobvarchar(6),uaddvarchar(20));Createtableborrow(idint(8)primarykeyauto_increment,uidvarchar(4),bidvarchar(6),datedate);Insertintobook(bid,kind,bname,bpub,bprice)values("000

3、001","tec","tecnetwork","AA",17);Insertintobook(bid,kind,bname,bpub,bprice)values("000002","tec","tecAjax","AA",23);Insertintobook(bid,kind,bname,bpub,bprice)values("000003","elc","elecCap","BB",33);BreezelifePage106/12/2021Insertintobook(bid,kind,bname,bpub,bprice)values("

4、000004","tec","tecXml","AA",21);Insertintobook(bid,kind,bname,bpub,bprice)values("000005","elc","elcJquery","BB",15);Insertintobook(bid,kind,bname,bpub,bprice)values("000006","pic","picPhoto","CC",10);Insertintobook(bid,kind,bname,bpub,bprice)values("000007","pic","picShow"

5、,"BB",26);Insertintocarduser(uid,upart,uname,usex)value("0001","Pso","Jason","1");Insertintocarduser(uid,upart,uname,usex)value("0002","Pso","April","0");Insertintocarduser(uid,upart,uname,usex)value("0003","Pso","Sharon","0");Insertintocarduser(uid,upart,uname,usex)value("

6、0004","Pso","Monica","0");Insertintocarduser(uid,upart,uname,usex)value("0005","Psale","Pary","1");Insertintocarduser(uid,upart,uname,usex)value("0006","Psale","Rita","0");Insertintocarduser(uid,upart,uname,usex)valueBreezelifePage106/12/2021("0007","Psale","Lucy","0");Inse

7、rtintocarduser(uid,upart,uname,usex)value("0008","Psale","Sofia","0");Insertintocarduser(uid,upart,uname,usex)value("0009","Pedit","Basil","1");Insertintocarduser(uid,upart,uname,usex)value("0010","Pedit","Rita","0");Insertintoborrow(uid,bid)value("0001","000004");Insertint

8、oborrow(uid,bid)value("0001","000005");Insertintoborrow(uid,bid)value("0001","0000

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。