我有以下代码:
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。