SQL 语句中使用的元素

以下元素用于前面列出的 SQL 语句。

元素

base-table-identifier ::= user-defined-name

base-table-name ::= base-table-identifier

boolean-factor ::= [NOT] boolean-primary

boolean-primary ::= comparison-predicate | ( 搜索条件 )

boolean-term ::= 布尔因子 [AND boolean-term]

character-string-literal ::= ''{character}...'' (字符 是驱动程序/数据源的字符集中的任何字符。 若要在 character-string-literal 中包含单个文本引号字符 ('') ,请使用两个文本引号字符 [''''].)

column-identifier ::= user-defined-name

column-name ::= [table-name.]column-identifier

comparison-operator ::= < | > | <= | >= | = | <>

comparison-predicate ::= expression comparison-operator expression

data-type ::= character-string-type (character-string-type 是 SQLGetTypeInfo 返回的结果集中“DATA_TYPE”列SQL_CHAR或SQL_VARCHAR的任何数据类型。)

digit ::= 0 |1 |2 |3 |4 |5 |6 |7 |8 |9

dynamic-parameter ::= ?

表达式 ::= term |表达式 {+|-} term

factor ::= [+|-]primary

insert-value ::=

dynamic-parameter

| 文字

| NULL

|用户

letter ::= 小写字母 | 大写字母

literal ::= character-string-literal

lower-case-letter ::= a |b |c |d |e |f |g |h |i |j |k |l |m |n |o |p |q |r |s |t |u |v |w |x |y |Z

order-by-clause ::= ORDER BY sort-specification [, sort-specification]...

primary ::= column-name

| dynamic-parameter

| 文字

| ( 表达式 )

search-condition ::= boolean-term [OR search-condition]

select-list ::= * | select-sublist [, select-sublist]... (select-list 不能包含 parameters.)

select-sublist ::= expression

sort-specification ::= {unsigned-integer | column-name} [ASC |DESC]

table-identifier ::= user-defined-name

table-name ::= table-identifier

table-reference ::= table-name

table-reference-list ::= table-reference [,table-reference]...

term ::= factor | term {*|/} factor

unsigned-integer ::= {digit}

大写字母 ::= A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

user-defined-name ::= letter[digit | letter | _]...