查读盘次数最多的前十个sql操作: SELECT * FROM (select PARSING_USER_ID, EXECUTIONS, SORTS, COMMAND_TYPE, DISK_READS, sql_text FROM v$sqlarea order BY disk_reads DESC) ; 发现有一条是垃圾操作. select * from v$sqlarea where sql_text like '%PM_TD_PERFCDL_temp%' select * from v$s
UPDATE:UPDATE A SET ApproverID=NULL FROM [SH_MaterialApplyBuyBill] A LEFT JOIN [SH_MaterialApplyBuyBillDetail] B ON A.ID=B.[MaterialApplyBuyBillID]WHERE A.id=125 AND @InDetailCount=0DELETE:DELETE A FROM [SH_ClosingBalance] A LEFT JOIN [SH_StoreHouse]
在SQLPLUS下,实现中-英字符集转换alter session set nls_language='AMERICAN';alter session set nls_language='SIMPLIFIED CHINESE'; 主要知识点: 一.有关表的操作 建表 create table test as select * from dept; --从已知表复制数据和结构create table test as select * from dept where 1=2; --从已知表复制结构但
Oracle :show explain plan select * from table(dbms_xplan.display); EXPLAIN PLAN FOR statements In fact, in a typical data warehouse environments, a bitmap index can be considered for any non-unique column. In a data warehouse, B-tree indexes should b