随笔分类 - Oracle
发表于 2022-09-02 15:00阅读:100评论:0推荐:0
摘要:当前操作为sys用户 1、查询是否有人连着 select username,sid,serial# from v$session where username = '用户名'; 2、断开连着的 alter system kill session 'sid,serial#'; 3、删除 drop us
阅读全文 »
发表于 2022-09-01 10:52阅读:45评论:0推荐:0
摘要:exp 用户名/密码@ip:port/实例名 file= D:\news.dmp tables=(表名) --导出一张表 imp 用户/密码@ip:port/orcl file= D:\news.dmp full=y ignore=y; 导入 --导出实例 需要知道oracle 安装在哪里 导出的文
阅读全文 »
发表于 2022-08-31 18:17阅读:91评论:0推荐:0
摘要:select listagg (id, ',') WITHIN GROUP (ORDER BY id) id from tableName start with id = xxx connect by prior id = fat_id;
阅读全文 »
发表于 2022-08-31 18:15阅读:25评论:0推荐:0
摘要:select * from tableName start with id = xxx connect by prior id = pid;
阅读全文 »
发表于 2022-08-26 10:36阅读:161评论: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_
阅读全文 »
发表于 2021-05-20 21:23阅读:61评论: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,并对
阅读全文 »