数据库
不断努力的boy
这个作者很懒,什么都没留下…
展开
-
杀死oracle锁表进程
select t2.username,t2.sid,t2.serial#,t2.logon_timefrom v$locked_object t1,v$session t2where t1.session_id=t2.sid order by t2.logon_time;alter system kill session '1176,34188';select a.spid,b.s...原创 2020-04-15 08:41:52 · 301 阅读 · 0 评论 -
oracle删除重复数据,过滤掉重复,重复数据只留一条
delete from hd_personal_info_bak1 twhere t.rowid in (select rid from (select t1.rowid rid, row_number() over(partition by t1.personalid order b...原创 2020-04-13 17:51:01 · 336 阅读 · 0 评论