From bfd2d71d2b0f57f089b88f8d17b7faa9abb9c9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=99=BA=E7=A0=94?= <3058944672@qq.com> Date: Sat, 10 Jun 2023 09:36:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...46\254\241\344\275\234\344\270\232.md.txt" | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 "46 \350\203\241\346\231\272\347\240\224/20230610\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232.md.txt" diff --git "a/46 \350\203\241\346\231\272\347\240\224/20230610\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232.md.txt" "b/46 \350\203\241\346\231\272\347\240\224/20230610\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232.md.txt" new file mode 100644 index 0000000..7529aa3 --- /dev/null +++ "b/46 \350\203\241\346\231\272\347\240\224/20230610\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232.md.txt" @@ -0,0 +1,153 @@ +数据库名称: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" %> + + + Title + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
租赁方式
租金
联系人
押金方式
房屋类型 + +
详细地址
+
+ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-07 + Time: 10:48 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 房源列表 + + + + + + + + + + + + + + + + + + + + + + + + +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 提示信息 + + +

${mgs}

+
+返回列表 -- Gitee
编号租赁方式租金联系人押金方式房屋类型详细地址
${v.id}${v.mode}${v.rent}${v.contacts}${v.method}${v.typeID}${v.type}