select查詢 實(shí)例集錦

select查詢 實(shí)例集錦

ID:6321899

大?。?1.50 KB

頁數(shù):10頁

時(shí)間:2018-01-10

select查詢 實(shí)例集錦_第1頁
select查詢 實(shí)例集錦_第2頁
select查詢 實(shí)例集錦_第3頁
select查詢 實(shí)例集錦_第4頁
select查詢 實(shí)例集錦_第5頁
資源描述:

《select查詢 實(shí)例集錦》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。

1、select查詢實(shí)例集錦例一:圖書管理數(shù)據(jù)庫  圖書(總編號(hào)C(6),分類號(hào)C(8),書名C(16),作者C(6),出版單位C(20),單價(jià)N(6,2))  讀者(借書證號(hào)C(4),單位C(8),姓名C(6),性別C(2),職稱C(6),地址C(20))借閱(借書證號(hào)C(4),總編號(hào)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

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動(dòng)畫的文件,查看預(yù)覽時(shí)可能會(huì)顯示錯(cuò)亂或異常,文件下載后無此問題,請(qǐng)放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負(fù)責(zé)整理代發(fā)布。如果您對(duì)本文檔版權(quán)有爭(zhēng)議請(qǐng)及時(shí)聯(lián)系客服。
3. 下載前請(qǐng)仔細(xì)閱讀文檔內(nèi)容,確認(rèn)文檔內(nèi)容符合您的需求后進(jìn)行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時(shí)可能由于網(wǎng)絡(luò)波動(dòng)等原因無法下載或下載錯(cuò)誤,付費(fèi)完成后未能成功下載的用戶請(qǐng)聯(lián)系客服處理。