摘要: 建立视图 create view a asselect *from stuInfo查询视图select *from a;这样的话可以简化很多的代码 create table region(id varchar(20) primary key, --主键,区域编号name varchar(20) no 阅读全文
posted @ 2022-06-11 14:25 LFL284 阅读(44) 评论(0) 推荐(0)
摘要: .统计函数:--count总数、max最大、min最小、avg平均、sum求和举例:--count:求数据总条数 select count(*) from Student --查询学生表中最大的年龄 select max(sage) from Student; --查询最小的年龄 select mi 阅读全文
posted @ 2022-06-11 14:22 LFL284 阅读(136) 评论(0) 推荐(0)