我正在编写一个基本的插入脚本,并在一开始尝试删除我稍后插入的内容,以便脚本可以多次运行。下面是一小部分代码。我收到如下错误:“无效的主机/绑定变量名”和“未声明绑定变量“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;
有任何想法吗?