![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
码农-文若书生
这个作者很懒,什么都没留下…
展开
-
mysql、oracle中判断记录存在则修改,不存在则插入
一、mysql中:INSERT INTO test_table(path, username, description) VALUES ('/root/test', 'zhangsan', 'this is test') ON DUPLICATE KEY UPDATE path = '/root/test', username = 'zhangsan'...原创 2020-03-14 20:22:13 · 589 阅读 · 0 评论 -
oracle将某个表闪回到某个时刻
1、开启行移动功能alter table [表名] enable row movement2、闪回flashback table [表名] to timestamp to_timestamp('2019-11-11 22:00:00', 'yyyy-mm-dd hh24:mi:ss')原创 2019-12-17 21:40:23 · 531 阅读 · 0 评论 -
oracle清除会话
话不多说,上sql查询SQL:select saddr,sid,serial#,paddr,username,status from v$session where username =upper('etl') or username =upper('sys');清除SQL:alter system kill session '27,33353';其中27为 查原创 2017-03-01 17:12:37 · 2530 阅读 · 0 评论 -
oracle查询一个表被多少表引用
oracle查询一个表被那些表引用,分别对应的引用列等,SQL语句如下:select fk_col.constraint_name, fk_col.table_name, fk_col.column_name from user_constraints pk, user_constraints fk, user_cons_columns fk_colwhere pk.table_na...原创 2017-02-24 10:53:18 · 2542 阅读 · 0 评论