Oracle updates the table of contents field or contain special characters lookup table field & solutions
phenomenon
Solutions
1. string concatenation
The UPDATE T_MENU_INFO the SET menu_code = ' / ABeptjk / gakfzx / abczscsppz ' , MENU_NAME = ' internet monitoring - Service - User's Manual ' || ' & ' || ' Video Configuration ' the WHERE menu_id = ' 40019 ' ;
2. set define off;
- set define off; the execution is invalid (PL / SQL) of the SQL window needs to be performed (PL / SQL) of the command window
the SQL > SET DEFINE OFF ; the SQL > SELECT * from T_MENU_INFO T WHERE t.menu_name like ' % internet monitoring - Service - video configuration operating Manual &% ' ;
3. chr(38)
- in a SQL statement '&' replaced chr (38), because chr (38) is an '&' ASCII codes SQL > the Select ' Tom ' || CHR ( 38 is ) || ' Jerry ' from Dual;
(Rpm) oracle special symbol oracle wildcard operator to use for comparison where the conditions are: equal: =, < , <=, > ,> =, <> comprising: in, not in exists, not exists range: BETWEEN ... and, not between .... and matching test: like, not like null test: is null, is not null Boolean link: and, or, not wildcards: in the where clause, wildcard together with like conditions use. In Oracle: % (percent sign): used to represent any number of characters, or may have no character. _ (Underscore): Indicates the exact unknown character. ? (Question mark): used to indicate the exact unknown character. # (Pound sign): used to indicate the exact Arabic numerals, 0-9. [AD] (brackets): it is used to represent a range of characters, in this case from a to d. Single quote ( '): In Oracle, should only use single quotes and text characters enclosed and date, can not use quotation marks (including single or double quotation marks) The number enclosed. Double quotes ( "): In Oracle, different single and double quotation marks are used to double meanings column alias containing specific characters or spaces enclosed in double quotes is also used to place text date format. Apostrophe ( '): in Oracle, the apostrophe may be written in two adjacent single quotes. To find the names of all suppliers with an apostrophe in the middle of vendor name, you can write code like this: * from the supplier_name l_suppliers WHERE SELECT like '%' '%' & symbol: In Oracle, ampersand used to indicate a variable. For example, & Fox is a variable, a slightly different && fox. Whenever & fox they appear in Oracle script, you will be asked to provide a value for it. The use of & & Fox , you only need & & Fox offers value for the variable when it first appeared. If you want to use as an ordinary ampersand symbol, you should turn off this feature. To turn off this feature, you can run the following command: set define off, this is a SQLplus command, not a SQL command. SQLplus set up the environment to run SQL in Oracle. Double pipe (||): Oracle using double pipe connection string representing functions. An asterisk (*): select * means select all columns, count (*) means to calculate all rows, said in a wildcard, it represents 0 or any number of characters. Forward slash (/): In Oracle, SQL statements to terminate. More precisely, is the "Run now in the buffer zone SQL code." Forward slash is also used as a separate item. Multi-line comments: /*......*/. Does not mean: a variety of expressions:! =, ^ =, <> , = Not XXX yyy, Not (XXX = yyy)