Oralce (c) special symbols

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 characters can be used with like conditions. 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 the meaning of specific characters or spaces contain column aliases enclosed in double quotes is also used to place text date format.
Apostrophe ( ' ): in Oracle, the apostrophe can also be written as two adjacent single quotation marks to find all suppliers names with apostrophes in the middle of vendor name, you can write code like this:.
the SELECT * from the WHERE l_suppliers the supplier_name like '% ''% '
& Symbols: In Oracle, & symbols used to indicate a variable. For example, & fox is a variable, a slightly different && fox. Whenever & fox appears in Oracle script, you will be asked to provide a value for it. The use && fox, you only need to provide values for the variables && fox 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:! =, ^ =, < >, Notxxx = yyy, not (xxx = yyy

Guess you like

Origin www.cnblogs.com/aaronRhythm/p/11979333.html