视图查询3:
use酒店住宿及消费管理数据库 select*
fromConsumptionview where其他消费金额<30
视图查询4:
use酒店住宿及消费管理数据库 select*
fromRoomview
where房间类型='花园私密家庭房'
视图查询5:
use酒店住宿及消费管理数据库
select证件号,房间号,SUM(其他消费金额) fromConsumptionview groupby证件号,房间号 orderbysum(其他消费金额)
5.数据操纵语句
1、插入语句
use酒店住宿及消费管理数据库 insertintoRoomtype (Rtype,Rprice)
values('标准双人间',360)
use酒店住宿及消费管理数据库 insertintoCustomer
(Cno,Cname,Ctype,Csex,Ctel,Cnote)
values('341011199102122349','牛魔王','身份证','男','13245321734',NULL)
删除语句: delete
fromReserve
whereCno='342122198001061111'
相关推荐: