随笔分类 -  Oracle

摘要:当前操作为sys用户 1、查询是否有人连着 select username,sid,serial# from v$session where username = '用户名'; 2、断开连着的 alter system kill session 'sid,serial#'; 3、删除 drop us 阅读全文 »
posted @ 2022-09-02 15:00 小秦的开发梦 阅读(100) 评论(0) 推荐(0) 编辑
摘要:exp 用户名/密码@ip:port/实例名 file= D:\news.dmp tables=(表名) --导出一张表 imp 用户/密码@ip:port/orcl file= D:\news.dmp full=y ignore=y; 导入 --导出实例 需要知道oracle 安装在哪里 导出的文 阅读全文 »
posted @ 2022-09-01 10:52 小秦的开发梦 阅读(45) 评论(0) 推荐(0) 编辑
摘要:select listagg (id, ',') WITHIN GROUP (ORDER BY id) id from tableName start with id = xxx connect by prior id = fat_id; 阅读全文 »
posted @ 2022-08-31 18:17 小秦的开发梦 阅读(91) 评论(0) 推荐(0) 编辑
摘要:select * from tableName start with id = xxx connect by prior id = pid; 阅读全文 »
posted @ 2022-08-31 18:15 小秦的开发梦 阅读(25) 评论(0) 推荐(0) 编辑
摘要:select TABLE_NAME ,COLUMN_NAME from user_tab_columns where Table_Name IN ( select table_name from user_tables where ( table_name like 'xxx%' OR table_ 阅读全文 »
posted @ 2022-08-26 10:36 小秦的开发梦 阅读(161) 评论(0) 推荐(0) 编辑
摘要:declare cursor cur is--声明游标cur select B.openid,A.ID ROW_ID FROM C_CLIENT_VIP A ,VIP_OPENID B WHERE A.ID=B.ERPID ORDER BY A.ID;--从A和B表中找到ID对应的openid,并对 阅读全文 »
posted @ 2021-05-20 21:23 小秦的开发梦 阅读(61) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示