MrWHL

博客园 首页 联系 订阅 管理

01 2019 档案

摘要: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 阅读(187) 评论(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 阅读(202) 评论(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 阅读(122) 评论(0) 推荐(0)

摘要:/** * * @author MrWang 冒泡排序 */ public class BubblingSort { // 比较相邻的两个元素,如果第一个比第二个小(大),则交换它们的位置。 // // 重复当前动作,直到排序完成 // // 如: 3 , 5 , 2 , 7 , 9 , 6 , 4 // ... 阅读全文
posted @ 2019-01-15 17:06 MrWHL 阅读(126) 评论(0) 推荐(0)

摘要:数据库操作 向Oracle中 新增一条数据:其实就是向临时表空间中新增 临时表空间的数据何时提交到表空间中呢? 答:三种情况: 1、Commit 2、过半个小时左右,自动提交 3、关闭plsql开发工具 -- 创建表空间create tablespace space -- 表空间名称datafile 阅读全文
posted @ 2019-01-08 14:40 MrWHL 阅读(131) 评论(0) 推荐(0)

摘要:(一)版本和下载 完整版本Oracle的官方直接下载的参考网址: https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html (二)软件安装 我们安装简化版本: 安装过程中: 这 阅读全文
posted @ 2019-01-08 14:33 MrWHL 阅读(128) 评论(0) 推荐(0)