From b25db30431d5c3a85db781f94eff3f1a1433b929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=AC=A3?= <3188923799@qq.com> Date: Fri, 9 Jun 2023 13:59:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E7=AE=A1=E7=90=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...41\347\220\206\347\263\273\347\273\237.md" | 156 ++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 "29 \347\216\213\351\233\257\351\235\231/20230607\346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237.md" diff --git "a/29 \347\216\213\351\233\257\351\235\231/20230607\346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237.md" "b/29 \347\216\213\351\233\257\351\235\231/20230607\346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237.md" new file mode 100644 index 0000000..d54d0ea --- /dev/null +++ "b/29 \347\216\213\351\233\257\351\235\231/20230607\346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237.md" @@ -0,0 +1,156 @@ +```sql +# 数据库名称:test + +# 表 (房源信息表) +# 字段显示 字段名 数据类型 默认值 备注和说明 + +create database test character set utf8; +use test; +create table house_type +( + id int primary key auto_increment, # 编号 主键,自动增长列 + type varchar(50) not null # 房屋类型 不允许为空 +); +insert into house_type +values (null, '2室1厅1卫'), + (null, '2室1厅1卫'), + (null, '3室2厅1卫'), + (null, '3室2厅1卫'), + (null, '3室1厅1卫'); +create table house_info +( + id int primary key auto_increment, # 编号 主键,自动增长列 + lease_mode varchar(50), # 租赁方式 可以为空 + rent double not null, # 租金不允许为空 + contacts varchar(20), # 联系人 可以为空 + deposit_method varchar(20), # 押金方式 可以为空 + house_type_id int, # 房屋类型外键 + address varchar(200) not null, # 详细地址 不允许为空 + foreign key (house_type_id) references house_type (id) # 外键 +); +insert into house_info +values (null, '整租', 2300, '', '押一付三', 1,'龙岩新罗闽大88'), + (null, '整租', 3700, '王晓明', '押一付三',2 ,'龙岩新罗闽大99'), + (null, '整租', 2500, '', '押一付三', 3,'龙岩新罗闽大33'), + (null, '整租', 2300, '张晓菲', '押一付一',4 ,'龙岩新罗闽大66'), + (null, '整租', 2300, '', '押一付一', 5,'龙岩新罗闽大55'); + + + + + +``` + +```java + +``` + +```java +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-07 + Time: 11:59 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + +
+编号 | +租赁方式 | +租金 | +联系人 | +押金方式 | +房屋类型 | +详细地址 | +
---|---|---|---|---|---|---|
${v.id} | +${v.mode} | +${v.rent} | +${v.contacts} | +${v.method} | +${v.typeID} | +${v.type} | +