Oracle 存储过程 删除表记录时删除不存在的记录也是显示删除成功
create or replace procedure delDept(p_deptno in dept.deptno%type) isbegin delete from dept where deptno=p_deptno; dbms_output.put_l...
declare
msql varchar2(200);
row_id varchar2(200);
begin
loop
row_id := 'AAATGiAAEAAAuLLAAA';
msql := 'select * from t3 where rowid='''||row_id || '''';...
A PL/SQL block has the following structure:[DECLAREdeclaration_statements]BEGINexecutable_statements[EXCEPTIONexception_handling_statements]END;/ []中是可选的.
mysql创建支持UTF-8编码的数据库GBK: CREATE DATABASE `test1` DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;UTF-8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;...
--pg_catalog
SELECT * from pg_class c,pg_attribute a,pg_type t where c.relname='BookKindList' and a.attnum>0 and a.attrelid=c.oid and a.atttypid=t.oid
SELECT a.attname from pg...
1. 监控事例的等待
select event,sum(decode(wait_Time,0,0,1)) "Prev",
sum(decode(wait_Time,0,1,0)) "Curr",count(*) "Tot"
from v$session_Wait
group by event order by 4;
2. 回滚...