oracle技术
ssmcnred
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
connect error
1.errororacle [mmsc] :/home/mmsc/mms_home/cfg>sqlSQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 17 11:21:07 2011Copyright (c) 1982, 2009, Oracle. All rights reserved.ERROR:ORA-12154: T...原创 2011-10-17 11:37:46 · 419 阅读 · 0 评论 -
关于oracle的日期计算
SELECT TRUNC(sysdate, 'dd'),TRUNC(sysdate, 'mm') FROM dual SELECT to_date( TRUNC(sysdate) - to_char(TRUNC(sysdate), 'D')+ 1) FROM dual; select TRUNC(sysdate) - to_char(TRUNC(sysdate), 'D') from du...原创 2012-02-17 15:07:06 · 157 阅读 · 0 评论 -
sql的递归查询
表中pid,id两个字段select pid,id from 表名 start with id= 1102 connect by prior pid=idselect pid,id from 表名 start with id= 1102 connect by prior id=pid查询出两种顺序的树原创 2012-06-29 17:25:17 · 164 阅读 · 0 评论 -
查表空间
select b.file_id 文件ID, b.tablespace_name 表空间, b.file_name 物理文件名, b.bytes 总字节数, (b.bytes - sum(nvl(a.bytes, 0))) 已使用, sum(nvl(a.bytes, 0)) ...原创 2013-04-18 17:42:16 · 178 阅读 · 0 评论 -
oracle回收站
select count(1) from recyclebin;drop table T_MSG_NOTERECEIVE purge;purge recyclebin;原创 2013-04-18 17:43:30 · 182 阅读 · 0 评论
分享