其他分享
首页 > 其他分享> > 4.1.4. Special Characters

4.1.4. Special Characters

作者:互联网

4.1.4. Special Characters

4.1.4. 特殊字符

Some characters that are not alphanumeric have a special meaning that is different from being an operator. Details on the usage can be found at the location where the respective syntax element is described. This section only exists to advise the existence and summarize the purposes of these characters.

那些非字母数字的字符具有与作为运算符不同的特殊意义。详细的用法可以在各自的语法元素详解处查看。本节的目的,仅在于提出这些字符的存在及总结其目的用法。

 

• A dollar sign ($) followed by digits is used to represent a positional parameter in the body of a function definition or a prepared statement. In other contexts the dollar sign can be part of an identifier or a dollar-quoted string constant.

• Parentheses (()) have their usual meaning to group expressions and enforce precedence. In some cases parentheses are required as part of the fixed syntax of a particular SQL command.

• Brackets ([]) are used to select the elements of an array. See Section 8.15 for more information on arrays.

• Commas (,) are used in some syntactical constructs to separate the elements of a list.

• The semicolon (;) terminates an SQL command. It cannot appear anywhere within a command, except within a string constant or quoted identifier.

• The colon (:) is used to select “slices” from arrays. (See Section 8.15.) In certain SQL dialects (such as Embedded SQL), the colon is used to prefix variable names.

• The asterisk (*) is used in some contexts to denote all the fields of a table row or composite value.It also has a special meaning when used as the argument of an aggregate function, namely that the aggregate does not require any explicit parameter.

• The period (.) is used in numeric constants, and to separate schema, table, and column names.

 

 

 

标签:used,4.1,some,dollar,用于,Characters,SQL,8.15,Special
来源: https://blog.csdn.net/ghostliming/article/details/111352676