随笔分类 -  Oracle

摘要:truncate table 表名 阅读全文
posted @ 2015-06-26 11:06 雨戈 阅读(207) 评论(0) 推荐(0)
摘要:库内数据复制MS SQL Server:Insert into 复制表名称 select 语句 (复制表已经存在)select 字段列表 into 复制表名称 from 表 (复制表不存在)Oracle :Insert into 复制表名称 select 语句 (复制表已经存在)create table 复制表名称 as select 语句 (复制表不存在) 阅读全文
posted @ 2013-12-20 10:45 雨戈 阅读(160) 评论(0) 推荐(0)
摘要:执行下面: grant create any table to 用户名称 阅读全文
posted @ 2013-12-20 10:44 雨戈 阅读(779) 评论(0) 推荐(0)
摘要:问题:在程序调用sql语句时候出现,由于以前的函数求值超时,函数求值被禁用。必须继续执行才能重, 这个是因为给这张表insert 后者 update 没有commit 所导致的。 阅读全文
posted @ 2013-12-20 10:41 雨戈 阅读(198) 评论(0) 推荐(0)
摘要:/* 1. 检查死锁 的sql 语句 */ select event,username,sid,serial#,status,last_call_et,sql_hash_value,prev_hash_value from v$session where status='ACTIVE' and last_call_et>1 and username is not null; select *from v$sqltext where hash_value='sql_hash_value值 或者 prev_hash_value' order by piece; 阅读全文
posted @ 2013-04-24 20:06 雨戈 阅读(156) 评论(0) 推荐(0)
摘要:select to_char(8762128.98769,'FML9G999G999G999G999D0099') from dualFM 去空格 L(¥)G分隔符 D小数点 0099 表示 最少2位小数 到第五进行四舍五入结果:¥8,762,128.9877 阅读全文
posted @ 2012-08-13 11:12 雨戈 阅读(2634) 评论(0) 推荐(0)