1、房屋编号,房屋标题,房屋详细描述,房屋价钱,发布时间,房屋面积,联系方式。三、 逻辑设计 四、 物理设计USER表字段名数据类型字段说明键引用备注idnumber用户编号主键非空namevarchar2(50)用户姓名password用户密码telephonevarchar2(15)手机号码username用户名isadminvarchar2(5)等级DISTRICT表区编号区名字STREET表街道编号街道名distreet_id外键TYPE表类型编号varchar2(10)类型名称HOUSE表房屋编号titlenvarchar2(50)房屋标题descriptionnvarchar2(200
2、0)房屋描述price房屋价格pubdatedate发布时间floorage面积contactvarchar2(100)联系方式user_idtype_idstreet_id五、 脚本-创建用户表create table USERS( ID NUMBER not null, NAME VARCHAR2(50), PASSWORD VARCHAR2(50), TELEPHONE VARCHAR2(15), USERNAME VARCHAR2(50), ISADMIN VARCHAR2(5);insert into USERS (ID, NAME)values (1001, accpinsert
3、into USERS (ID, NAME)values (1002, jbitinsert into USERS (ID, NAME)values (1000, admininsert into USERS (ID, NAME)values (60, ACCP6insert into USERS (ID, NAME)values (77, accp5-创建区表create table DISTRICT ID NUMBER not null, NAME VARCHAR2(50) not nullinsert into DISTRICT (ID, NAME)values (1001, 东城inse
4、rt into DISTRICT (ID, NAME)values (1002, 西城insert into DISTRICT (ID, NAME)values (1003, 石景山insert into DISTRICT (ID, NAME)values (1006, 朝阳insert into DISTRICT (ID, NAME)values (1000, 丰台insert into DISTRICT (ID, NAME)values (1004, 海淀-创建街道表create table STREET ID NUMBER not null, NAME VARCHAR2(50), DIS
5、TRICT_ID NUMBERinsert into STREET (ID, NAME, DISTRICT_ID)values (1000, 知春路, 1004);insert into STREET (ID, NAME, DISTRICT_ID)values (1001, 中关村大街insert into STREET (ID, NAME, DISTRICT_ID)values (1002, 学院路insert into STREET (ID, NAME, DISTRICT_ID)values (1003, 朝阳路, 1006);-创建房屋类型表create table TYPE NAME
6、VARCHAR2(10) not nullinsert into TYPE (ID, NAME)values (1000, 一室一厅insert into TYPE (ID, NAME)values (1001, 一室两厅insert into TYPE (ID, NAME)values (1002, 两室一厅insert into TYPE (ID, NAME)values (1003, 两室两厅insert into TYPE (ID, NAME)values (1004, 三室一厅insert into TYPE (ID, NAME)values (1005, 三室两厅insert in
7、to TYPE (ID, NAME)values (1006, 四室一厅insert into TYPE (ID, NAME)values (1007, 四室两厅insert into TYPE (ID, NAME)values (1008, 四十三厅-创建房屋表create table HOUSE ID NUMBER, USER_ID NUMBER, TYPE_ID NUMBER, TITLE NVARCHAR2(50), DESCRIPTION NVARCHAR2(2000), PRICE NUMBER, PUBDATE DATE, FLOORAGE NUMBER, CONTACT VAR
8、CHAR2(100), STREET_ID NUMBERinsert into house (id,user_id,street_id,type_id,title,description,pubdate,price,floorage)values (1002, 1002,1003,1007,美丽港湾 ,我们为你提供最优质的服务 4-6660.0096.34(1003, 60,1002,1004,新华名苑 住在这里人们都很开放6-30639.0080.26(1004, 77,1001,1002,三江明珠和谐小区,和谐人文居住环境2-21800.78103.78(1005, 1000,1002,1
9、000,宜兴小区 我们这里有魅力的自然景观 5-31753.0083.85(1006, 1001,1003,1005,蠡湖家园 公园的美景让您流连忘返 12-4492.00100.45(1007, 1001,1001,1000,家园小区 欢迎来到室外桃园7-867.3421.34(1008, 60,1003,1004,仁和小区 这里有着最优质的服务1-3167.34620.23(1009, 77,1001,1003,和谐家园和谐,更加和谐12-30101.3428.98(1010, 1002,1002,1001,跨山庄跨越,是一种超越39.3439.23insert into house (id,user_id,street_id,type_i
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1