Oracle
文章平均质量分 51
sunny_kan
这个作者很懒,什么都没留下…
展开
-
oracle中如何使用序列
//sequenceName为序列名,length为显示序列的长度例如显示为(0000001) public String getCircSequence(String sequenceName, int length) throws CircException { Connection conn = null; StringBuffer sb = nu原创 2008-10-15 12:15:00 · 1215 阅读 · 0 评论 -
Oracle批量插入日期
--循环插入时间(当前时间截止到2020-12-31)declaretemp int := 10000;beginfor i in 1..temploopif(to_date(to_char(sysdate+i,yyyy-mm-dd),yyyy-mm-dd) = to_date(2021-01-01,yyyy-mm-dd)) thenexit;end if;insert into原创 2008-10-13 17:43:00 · 1475 阅读 · 1 评论 -
Oracle查看死锁
查看有哪些表被锁住select b.owner,b.object_name,a.session_id,a.locked_modefrom v$locked_object a,dba_objects bwhere b.object_id = a.object_id select b.username,b.sid,b.serial#,logon_timefrom v$locked_obje原创 2008-12-08 15:10:00 · 5041 阅读 · 0 评论 -
oracle 分割字符串
oracle中字符串分割,id name1 aa,bb,cc,.........查找name中包含aa的行 select t.groupid,t.userid from (select groupid,substr(, || first_users || , ,instr(, || first_us原创 2009-07-22 17:18:00 · 1180 阅读 · 0 评论