数据库
文章平均质量分 60
leo_fanaq
喜欢了解各种程序语言
展开
-
将ORACLE的任意表数据导出(标准格式)
create or replace procedure backup_table_to_file /**//*功能:将ORACLE的任意表数据导出(标准格式) */ ( v_tablename varchar2, /**//*需要导出的表名*/ v_path varchar2, /**//*服务器上导出数据文件的目录*/ v_s转载 2007-05-13 00:12:00 · 687 阅读 · 0 评论 -
Oracle存储过程实现多线程对表数据的抽取
原先使用ForUpdateSkipLocked,但直到11g,这个参数还未被正式支持,而且在此之上使用排序还存在问题,所以改用符合ANSI的ForUpdateNowait来实现。CREATE OR REPLACE PACKAGE BODY RESB_MT_TABLE_PKG AS -- Try to lock thw row by RowId -- 1 Successful -- 0原创 2008-01-23 13:15:00 · 6705 阅读 · 1 评论 -
Trigger的缺点
原文地址:http://www.cine.idv.tw/learning/computer-science/database/oracle/trigger-76847f3a9edeshortie 對使用資料庫端提供的程式機制,一直採取比較積極的態度,也就是說面對一個應用程式的問題,如果可以用資料庫端的 stored procedure/function, trigger 來解決, shortie转载 2008-02-15 22:20:00 · 953 阅读 · 0 评论 -
对嵌套事务的理解
原文地址:http://dev2dev.bea.com.cn/blog/davidturing/200803/transaction_04_923.html目前,似乎很少有支持嵌套事务的中间件,但嵌套事务确实存在。假定有Method A, Method B, Method CA 调用 B,CServiceHost { /** * 事务属性配置为转载 2008-03-05 11:33:00 · 566 阅读 · 0 评论 -
主动触发式接口的设计与实现
1、触发器的设计,采用队列机制避免阻塞create or replace trigger new97es_idcc_trigger_fg after insert or update of STATE on SPJK_FAMILY_GATEWAY for each rowdeclare -- local variables here job BINARY_INTEGER;begin原创 2008-07-17 23:15:00 · 270 阅读 · 0 评论 -
JDBC getgeneratedKeys
Besides the getgeneratedKeys method, the returning clause of insert method can also be accessed using JDBC. For reference Im providing the following code :/******************************************/转载 2008-08-27 13:07:00 · 1540 阅读 · 0 评论 -
CLOB或者BLOB,字符编码
如果在使用CLOB中发现字符编码的问题无法解决,试试BLOB原创 2008-10-10 22:40:00 · 282 阅读 · 0 评论