0

我有以下代码:

INSERT INTO Table_Delete (name)
SELECT su_name
FROM   Student_Data
where class = '12'

MINUS
SELECT name
  FROM Students
  WHERE roll_num in (select roll_num from RollNumber
                       where class = '12');

COMMIT;
exit

我需要更新此代码以检查 Table_Delete = Table_2 的内容是否为空 Table_delete。我无法通过 If exists 命令执行此操作。

谁能帮我解决这个问题?我正在使用 Oracle 9i。

4

1 回答 1

1
select count(*) into ws_count from x where table_delete = table_2;
if(ws_count = 1) then

这边走

于 2013-01-22T15:18:46.383 回答