daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  数据库之Oracle

Oracle积累
摘要:1、控制文件:load datainfile 'data.txt'append into table CustBasicInfoFields terminated by ','(CustId "'ZJYDTZ'||:CustId", CustTel,field1 Filler,field2 Fill... 阅读全文
posted @ 2014-12-23 11:00 daixinet.com 阅读(187) 评论(0) 推荐(0)

摘要:SQLLDR用于快速的批量导入数据,示例步骤如下:1、确定Oracle的连接示例 username/password@sid 我使用的是:system/world@localorcl sid是连接的示例,也就是net manager中的服务命名,示意图如下: 2、创建表,语句如下:CREAT... 阅读全文
posted @ 2014-09-29 10:47 daixinet.com 阅读(819) 评论(0) 推荐(0)

摘要:JOBdeclare jobno number;begin dbms_job.submit( jobno, 'insert into tmptable1 values(1,1);', to_date('2013-07-09 12:00:00','yyyy-mm-dd HH24:mi:ss'),... 阅读全文
posted @ 2013-07-09 13:36 daixinet.com 阅读(167) 评论(0) 推荐(0)

摘要:SQL 语句优化: 1、union 为Bak的 分开写Where语句,Where后再union 2、union 换为union all 3、Select * 换成具体字段 3、有参数的,用参数列表,AnsiString对应的char,varchar,string对应的nchar,nvarcha... 阅读全文
posted @ 2013-06-28 09:20 daixinet.com 阅读(187) 评论(0) 推荐(0)

摘要:多个事务同事操作数据库,报错:Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 阅读全文
posted @ 2012-12-11 19:14 daixinet.com 阅读(700) 评论(0) 推荐(0)