随笔分类 - Oracle
摘要:当前操作为sys用户 1、查询是否有人连着 select username,sid,serial# from v$session where username = '用户名'; 2、断开连着的 alter system kill session 'sid,serial#'; 3、删除 drop us
阅读全文
摘要:exp 用户名/密码@ip:port/实例名 file= D:\news.dmp tables=(表名) --导出一张表 imp 用户/密码@ip:port/orcl file= D:\news.dmp full=y ignore=y; 导入 --导出实例 需要知道oracle 安装在哪里 导出的文
阅读全文
摘要:select listagg (id, ',') WITHIN GROUP (ORDER BY id) id from tableName start with id = xxx connect by prior id = fat_id;
阅读全文
摘要:select * from tableName start with id = xxx connect by prior id = pid;
阅读全文
摘要: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_
阅读全文
摘要: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,并对
阅读全文

浙公网安备 33010602011771号