MrWHL

博客园 首页 联系 订阅 管理

2019年1月23日

摘要: 1.分页 分页查询台账表T_ACCOUNT,每页10条记录--查看第一页select rownum,ac.* from t_account ac where rownum<=10;select rownum,ac.* from t_account ac where rownum between 1 阅读全文
posted @ 2019-01-23 14:45 MrWHL 阅读(124) 评论(0) 推荐(0) 编辑

摘要: 1. 聚合函数 1 统计2012年所有用户的用水量总和select sum(usenum) from t_account where year = 2012;--2 统计2012年所有用水量(字数)的平均值select avg(usenum) from t_account where year = 阅读全文
posted @ 2019-01-23 14:44 MrWHL 阅读(177) 评论(0) 推荐(0) 编辑

摘要: --0. 创建学生表:学号、姓名、性别、年龄、生日、邮箱、电话create table student( stuno int, stuname varchar2(50), sex char(1), age int, birthday date, email varchar2(50), telepho 阅读全文
posted @ 2019-01-23 14:42 MrWHL 阅读(116) 评论(0) 推荐(0) 编辑