1 /*
2 *客戶資訊表3 */
5 insert into sys_user(uname,upassword) values('張三','s217701');6 insert into sys_user(uname,upassword) values('李四','s217702');7 insert into sys_user(uname,upassword) values('王鑫','s217703');8 insert into sys_user(uname,upassword) values('張建','s217704');9 insert into sys_user(uname,upassword) values('李劍','s217705');10 insert into sys_user(uname,upassword) values('蔣以然','s217706');11 insert into sys_user(uname,upassword) values('王曉超','s217707');12 insert into sys_user(uname,upassword) values('張冬雪','s217708');13 insert into sys_user(uname,upassword) values('孫鵬','s217709');14 insert into sys_user(uname,upassword) values('蔣連昌','s217710');15 /*
16 *區縣資訊17 */
19 insert into hos_district (dname) values('海淀區');20 insert into hos_district (dname) values('西城區');21 insert into hos_district (dname) values('東城區');22 insert into hos_district (dname) values('朝陽區');23 insert into hos_district (dname) values('景山區');24 insert into hos_district (dname) values('宣武區');25 insert into hos_district (dname) values('大興');26 insert into hos_district (dname) values('豐台');27 /*
28 *街道資訊表29 */
31 insert into hos_street (sname,sdid) values('中關村',1);32 insert into hos_street (sname,sdid) values('蘇州街',1);33 insert into hos_street (sname,sdid) values('万泉莊',1);34 insert into hos_street (sname,sdid) values('東四',3);35 insert into hos_street (sname,sdid) values('東單',3);36 insert into hos_street (sname,sdid) values('西四',2);37 insert into hos_street (sname,sdid) values('西單',2);38 insert into hos_street (sname,sdid) values('東湖',4);39 insert into hos_street (sname,sdid) values('八里莊',4);40 insert into hos_street (sname,sdid) values('雙井',5);41 insert into hos_street (sname,sdid) values('陶然亭',5);42 insert into hos_street (sname,sdid) values('南菜園',6);43 insert into hos_street (sname,sdid) values('興豐街',7);44 insert into hos_street (sname,sdid) values('黃村',7);45 insert into hos_street (sname,sdid) values('南苑街',8);46 insert into hos_street (sname,sdid) values('東鐵營',8);47 /*
48 *房屋型別表49 */
51 insert into hos_type (htname) values('一室一衛');52 insert into hos_type (htname) values('一室一廳');53 insert into hos_type (htname) values('兩室一衛');54 insert into hos_type (htname) values('兩室一廳');55 insert into hos_type (htname) values('三室一廳');56 insert into hos_type (htname) values('三室兩廳');57 /*
58 *出租房屋資訊表59 */
61 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)62 values(1,1,2,2600,'中關村','中關村一條街','2009-1-2','中關村');63 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)64 values(2,2,3,3600,'蘇州街','蘇州街一條街','2009-1-3','蘇州街');65 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)66 values(3,3,4,4600,'万泉莊','万泉莊一條街','2009-1-4','万泉莊');67 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)68 values(1,3,2,1500,'万泉莊附近','万泉莊附近一條街','2009-7-2','万泉莊附近');69 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)70 values(1,5,2,2700,'東單','東單很多美食','2009-9-2','東單');71 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)72 values(3,1,2,2600,'中關村','中關村電腦城','2009-4-1','中關村');73 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)74 values(4,4,1,2000,'東四','東四一條街','2009-4-2','東四');75 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)76 values(5,6,3,3600,'西四','西四一條街','2009-1-2','西四');77 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)78 values(5,7,2,3600,'西單','西單購物城','2009-4-2','西單');79 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)80 values(6,2,2,2600,'蘇州街','蘇州街美食','2009-2-2','蘇州街');81 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)82 values(7,8,3,2900,'朝陽東湖','朝陽東湖一景','2009-3-2','朝陽');83 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)84 values(8,3,1,700,'万泉莊','万泉莊一條街','2009-5-2','万泉莊');85 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)86 values(3,2,3,4200,'蘇州街','蘇州街二條街','2009-1-3','蘇州街');87 insert intohos_house(uid,sid,htid,price,topic,contents,htime,copy)88 values(4,2,3,4100,'蘇州街','蘇州街西街','2009-1-3','蘇州街');
牛客網 MySQL資料庫練習
找出所有員工當前 to date 9999 01 01 具體的薪水salary情況,對於相同的薪水只顯示一次,並按照逆序顯示 create table salaries emp no int 11 not null,salary int 11 not null,from date date not ...
我MySQL資料庫表的設計說明 資料庫設計說明書
資料庫設計 在系統設計過程中,資料庫也是乙個不可以忽視的環節,資料庫的設計關係到系統的穩定性,所以每個資訊的管理,必須設計好,下面是我們用mysql設計的相關系統的資料庫。1 使用者表 2 商品資訊表 3 訂單表 4 評價或資訊反饋表 這些表都不是隨意設計的,在關係上必須有對應的關係。下面是詳細建庫...
我的mysql資料庫sql優化原則
原文 我的mysql資料庫sql優化原則 這裡的原則 只是針對mysql資料庫,其他的資料庫 某些是殊途同歸,某些還是存在差異。我總結的也是mysql普遍的規則,對於某些特殊情況得特殊對待。在構造sql語句的時候養成良好的習慣 原來語句 select from admin 優化為 select ad...