
oralce
iteye_9202
这个作者很懒,什么都没留下…
展开
-
查看表空间的使用情况
SELECT c.tablespace_name tablespace_name, ROUND(a.bytes/1048576,2) total_size,ROUND((a.bytes-b.bytes)/1048576,2) used_size,ROUND(b.bytes/1048576,2) free_size, ROUND(b.bytes/a.bytes * 100,2)||'%' free_...原创 2010-08-12 12:38:32 · 118 阅读 · 0 评论 -
oracle 闪回
alter table table_name enable row movement; flashback table table_nameto timestamp to_timestamp('2009-11-20 15:00:00','yyyy-mm-dd hh24:mi:ss');2009-11-20 18:53:46 · 86 阅读 · 0 评论 -
oracle case when 字符串转行
UPDATE tablename SET PARENTID=( case WHEN LENGTH(column1)/2=1 then '0' when LENGTH(column2)/2=2 then substr(column1,1,2) when LENGTH(column3)/2=3 then substr(column2,1,...2009-11-05 13:39:19 · 172 阅读 · 0 评论