[英]Oracle 11g R2 SE run query
我如何在Oracle 11g R2 SE中在sql>提示符下運行以下查詢
CREATE TRIGGER "ICD".TR_DEL_SYSTEMALERTCFG_CSTLVL
after delete on t_custlevel
begin
delete t_monitor_systemalertcfg a
where a.queuetype = 4
and a.queueid not in (
select b.id from t_custlevel b
where a.subccno = b.subccno
and a.vdn = b.vdn
);
end TR_DEL_SYSTEMALERTCFG_CSTLVL;
請提出建議。
謝謝
考沙爾
cd
命令)。 sqlplus
命令以連接到數據庫。 @my_query.sql
以執行查詢文件。 如果要自動退出sql,請在最后加上一個斜杠並退出
CREATE TRIGGER "ICD".TR_DEL_SYSTEMALERTCFG_CSTLVL
after delete on t_custlevel
begin
delete t_monitor_systemalertcfg a
where a.queuetype = 4
and a.queueid not in (
select b.id from t_custlevel b
where a.subccno = b.subccno
and a.vdn = b.vdn
);
end TR_DEL_SYSTEMALERTCFG_CSTLVL;
/
exit
順便說一句:您不是以root身份在數據庫服務器上運行sqlplus,是嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.