随笔分类 -  数据库

摘要:1 select 'alter system kill session ''' || SID || ',' || SERIAL# || ''';' 2 3 from ( 4 5 select distinct a.sid,a.Serial#,status,machine,LOCKWAIT,logon 阅读全文
posted @ 2019-01-23 15:49 哈比Sport 阅读(1444) 评论(0) 推荐(0)
摘要:一.delete误删 方法1:如果表结构没有改变,直接闪回整个表,具体步骤: --首先需要表闪回权限,开启行移动功能 alter table 表名 enable row movement; --执行闪回恢复表数据到某个时间点 flashback table 表名 to timestamp to_ti 阅读全文
posted @ 2018-04-01 13:37 哈比Sport 阅读(355) 评论(0) 推荐(0)
摘要:Oracle与Mysql的游标使用区别 阅读全文
posted @ 2018-02-01 23:22 哈比Sport 阅读(556) 评论(0) 推荐(0)