![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
文章平均质量分 53
清风看海
个热热
展开
-
pl/sql查询锁表用户
SELECT A.OWNER, --OBJECT所属用户 A.OBJECT_NAME, --OBJECT名称(表名) B.XIDUSN, B.XIDSLOT, B.XIDSQN, B.SESSION_ID, --锁表用户的session B....原创 2015-01-23 15:03:29 · 330 阅读 · 0 评论 -
ORACLE日期时间函数大全
ORACLE日期时间函数大全 TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyy...原创 2013-09-17 15:10:19 · 73 阅读 · 0 评论 -
oracle函数
一. 字符函数(可用于字面字符或数据库列) 1,字符串截取 select substr('abcdef',1,3) from dual 2,查找子串位置 select instr('abcfdgfdhd','fd') from dual 3,字符串连接 select 'HELLO'||'hello world' from dual; 4, 1)去掉字...原创 2013-09-17 15:14:20 · 77 阅读 · 0 评论 -
oracle分组函数、临时表
一.分组函数 max min avg count sum 1,整个结果集是一个组 1) 求部门30 的最高工资,最低工资,平均工资,总人数,有工作的人数,工种数量及工资总和 select max(ename),max(sal), min(ename),min(sal), avg(sal), count(*) ,count(job),co...原创 2013-09-17 15:15:23 · 125 阅读 · 0 评论