chironyf / hotel-management-system Goto Github PK
View Code? Open in Web Editor NEW宾馆管理系统。可以订房、续费、退房、订单管理、员工管理以及业务数据统计可视化展示等
License: GNU General Public License v3.0
宾馆管理系统。可以订房、续费、退房、订单管理、员工管理以及业务数据统计可视化展示等
License: GNU General Public License v3.0
19:49:16 CREATE TABLE orders ( # 订单号 orderNumber CHAR(32) NOT NULL , # 订单状态 orderStatus CHAR(18) check (value in ('预订中','已入住','已退房')) , # 客户身份证 customerIDCard CHAR(18), # 入住房间号 roomNumber CHAR(6) NOT NULL, # 入住时间 checkInTime DATE NOT NULL, # 离店时间 checkOutTime DATE NOT NULL, # 需付金额(由于可能续费,不能作为外键) totalMoney INT UNSIGNED NOT NULL, # 服务员工号 waiterID VARCHAR(10) NOT NULL, # 备注 remarks VARCHAR(32), orderTime DATE NOT NULL, # 主键 PRIMARY KEY (orderNumber), # 外键 FOREIGN KEY (customerIDCard) REFERENCES customers(customerIDCard), FOREIGN KEY (roomNumber) REFERENCES room(roomNumber), FOREIGN KEY (waiterID) REFERENCES waiter(waiterID) ) ENGINE=InnoDB Error Code: 3813. Column check constraint 'orders_chk_1' references other column. 0.000 sec
这段报错,但我看不懂为什么错了,网上也找不到解决办法。
hotelCreateDB.sql中新建的几个表名称跟后面执行关联sql语句中表名大小写不一致,导致执行出错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.