SQL Developer帮助输入替换变量

Mic*_*ael 7 database oracle11g oracle-sqldeveloper

我正在尝试使用脚本将大约15,000行数据输入到我的表中,但是当我运行脚本时,我得到一个弹出窗口,要求我输入替换变量.

如何阻止它弹出以便允许我输入日期?

以下是我需要输入的一些数据行的一些示例

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category)
VALUES 
 ('Normal', 4771, 'Carfax & Co', 'Matriotism Plc', 'A');

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category) 
VALUES 
 ('Normal', 2525, 'Matriotism Plc', 'Carfax & Co', 'A');

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category) 
VALUES 
 ('Normal', 693, 'Matriotism Plc', 'Sylph Fabrication', 'A');

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category) 
VALUES 
 ('Fragile', 2976, 'Nosophobia Fabrication', 'Carfax & Co', 'B');

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category) 
VALUES 
 ('Fragile', 3385, 'Nosophobia Fabrication', 'Carfax & Co','B');
Run Code Online (Sandbox Code Playgroud)

Lyn*_*ing 8

&符号(&)告诉oracle你想要使用替换变量.

您可以通过在所有&符号前加上转义字符来在插入中转义这些:

SET ESCAPE '\'

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category) 
VALUES 
 ('Fragile', 3385, 'Nosophobia Fabrication', 'Carfax \& Co','B');
Run Code Online (Sandbox Code Playgroud)

或禁用以完全扫描替换变量:

SET SCAN OFF

INSERT INTO description 
 (description, item_weight, pickup_customer, delivery customer, category) 
VALUES 
 ('Fragile', 3385, 'Nosophobia Fabrication', 'Carfax & Co','B');
Run Code Online (Sandbox Code Playgroud)

有关更多信息,请随时查看:http: //ss64.com/ora/syntax-escape.html