Commit 43b56536 by shj

数据库备份

parent ba1544cc
...@@ -117,10 +117,10 @@ CREATE TABLE budgetmanagementsystem.travel ...@@ -117,10 +117,10 @@ CREATE TABLE budgetmanagementsystem.travel
accommodation double COMMENT '住宿标准', accommodation double COMMENT '住宿标准',
comment text COMMENT '备注' comment text COMMENT '备注'
); );
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (1, '上海', 2000, 100, 80, 500, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (1, '上海', 2000, 100, 80, 500, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (2, '南宁', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (2, '南宁', 2000, 100, 80, 350, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (3, '桂林', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (3, '桂林', 2000, 100, 80, 350, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (4, '北海', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (4, '北海', 2000, 100, 80, 350, null);
CREATE TABLE budgetmanagementsystem.workstation CREATE TABLE budgetmanagementsystem.workstation
( (
id int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, id int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
......
...@@ -117,10 +117,10 @@ CREATE TABLE budgetmanagementsystem.travel ...@@ -117,10 +117,10 @@ CREATE TABLE budgetmanagementsystem.travel
accommodation double COMMENT '住宿标准', accommodation double COMMENT '住宿标准',
comment text COMMENT '备注' comment text COMMENT '备注'
); );
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (1, '上海', 2000, 100, 80, 500, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (1, '上海', 2000, 100, 80, 500, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (2, '南宁', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (2, '南宁', 2000, 100, 80, 350, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (3, '桂林', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (3, '桂林', 2000, 100, 80, 350, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (4, '北海', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (4, '北海', 2000, 100, 80, 350, null);
CREATE TABLE budgetmanagementsystem.workstation CREATE TABLE budgetmanagementsystem.workstation
( (
id int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, id int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
......
...@@ -109,10 +109,10 @@ CREATE TABLE budgetmanagementsystem.travel ...@@ -109,10 +109,10 @@ CREATE TABLE budgetmanagementsystem.travel
accommodation double COMMENT '住宿标准', accommodation double COMMENT '住宿标准',
comment text COMMENT '备注' comment text COMMENT '备注'
); );
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (1, '上海', 2000, 100, 80, 500, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (1, '上海', 2000, 100, 80, 500, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (2, '南宁', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (2, '南宁', 2000, 100, 80, 350, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (3, '桂林', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (3, '桂林', 2000, 100, 80, 350, null);
INSERT INTO budgetmanagementsystem.travel (id, dest, price, food, traffic, accommodation, comment) VALUES (4, '北海', 2000, 100, 80, 350, null); INSERT INTO budgetmanagementsystem.travel (id, name, price, food, traffic, accommodation, comment) VALUES (4, '北海', 2000, 100, 80, 350, null);
CREATE TABLE budgetmanagementsystem.workstation CREATE TABLE budgetmanagementsystem.workstation
( (
id int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, id int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
select * from travel where id=#{id} select * from travel where id=#{id}
</select> </select>
<insert id="insertTravel"> <insert id="insertTravel">
insert into budgetmanagementsystem.travel(dest, price, food, traffic, accommodation) insert into budgetmanagementsystem.travel(name, price, food, traffic, accommodation)
values (#{dest},#{price},#{food},#{traffic},#{accommodation}) values (#{dest},#{price},#{food},#{traffic},#{accommodation})
</insert> </insert>
<delete id="deleteTravel"> <delete id="deleteTravel">
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</delete> </delete>
<update id="updateTravel"> <update id="updateTravel">
update budgetmanagementsystem.travel update budgetmanagementsystem.travel
set dest=#{dest},price=#{price},food=#{food},traffic=#{traffic},accommodation=#{accommodation} set name=#{dest},price=#{price},food=#{food},traffic=#{traffic},accommodation=#{accommodation}
where id=#{id} where id=#{id}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment