Enter value for nbsp error occurs when inserting data in Oracle

 Oralce handles the &character in insert2015-11-2015:42:46

Category: Oracle

Sometimes we may store some special words in the table, such as & , but in sqlplus, oracle considers it as input, as follows
SQL> INSERT INTO "BB"."T" VALUES ('1141', '1', '<p>111111    111</p>', '1','1', '1', '1', '1', 'fsdfsd;', '0', '1 ');
Enter value for nbsp: 
Enter value for nbsp: 
Enter value for nbsp: 
Enter value for nbsp: 
In fact, ctrl+c exits directly here, there is no real insertion.

You can use set define off to turn off the input of the & character
SQL> set define off
SQL> INSERT INTO "BB"."T" VALUES ('1141', '1','<p>111111     111</p>', '1','1', '1', '1', '1', '    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324915676&siteId=291194637