0
我正在編寫一個基本的插入腳本,並在開始嘗試刪除稍後插入的內容,以便可以多次運行該腳本。以下是代碼的一小部分。我遇到如下錯誤:「無效主機/綁定變量名稱」和「綁定變量」SELECTIONS「未聲明」。主機/變量未聲明問題 - 但腳本中沒有聲明/變量
例:
SET DEFINE OFF
DELETE FROM SELECTIONS WHERE DATAFIELD IN ('ba', 'bb', 'bc', 'bd');
DELETE FROM SELECTION_LOCALE WHERE DATAFIELD IN ('ba', 'bb', 'bc', 'bd');
COMMIT;
INSERT INTO SELECTIONS (SELECTIONS_ID, DATAFIELD, DESCRIPTION) VALUES ('CATCHANGE', 'ba', 'PI&D Library');
INSERT INTO SELECTIONS (SELECTIONS_ID, DATAFIELD, DESCRIPTION) VALUES ('CATCHANGE', 'bb', 'Non-conformance');
INSERT INTO SELECTIONS (SELECTIONS_ID, DATAFIELD, DESCRIPTION) VALUES ('CATCHANGE', 'bc', 'Alternative Route');
COMMIT;
任何想法?