【发布时间】:2019-01-25 07:27:53
【问题描述】:
您好,我正在编写一组简单的 oracle 语句,但我收到一条错误消息,提示“PLS-00103:在预期以下情况时遇到符号 DROP”。我不确定我的陈述有什么问题。任何帮助表示赞赏。
DECLARE
table_exists number := 0;
BEGIN
SELECT COUNT(*) INTO table_exists FROM dba_tables WHERE owner = 'ABC'
AND table_name = 'XYZ';
If (table_exists = 1) then
DROP TABLE "ABC"."XYZ";
End If;
End;
【问题讨论】:
标签: oracle