2015年1月29日
摘要: declare cursor mycursor is SELECT ROWID FROM tpr_zjjx1 WHERE jxrq=to_date('2013-06-30','yyyy-mm-dd') order by rowid; type rowid_table_type i... 阅读全文
posted @ 2015-01-29 18:40 相约future 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1、Oracle11g默认对空表不分配segment,故使用exp导出Oracle11g数据库时,空表不会导出。 2、设置deferred_segment_creation 参数为FALSE后,无论是空表还是非空表,都分配segment。 在sqlplus中,执行如下命令: SQL>al... 阅读全文
posted @ 2015-01-29 13:42 相约future 阅读(144) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE FUNCTION money_to_chinese (money IN VARCHAR2) RETURN VARCHAR2IS c_money VARCHAR2 (12); m_string VARCHAR2 (60) := '分角圆拾佰仟万... 阅读全文
posted @ 2015-01-29 13:24 相约future 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1、正在连接的用户不能删除,确实要删除的话,如下 select sid,serial#,username from v$session where user='USERNAME'; alter system kill session 'sid,serial#'; drop user username... 阅读全文
posted @ 2015-01-29 13:21 相约future 阅读(366) 评论(0) 推荐(0) 编辑