Elementos que se usan en instrucciones SQL

Los siguientes elementos se usan en las instrucciones SQL enumeradas anteriormente.

Elemento

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

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

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

boolean-primary ::= comparison-predicate | ( search-condition )

boolean-term ::= boolean-factor [AND boolean-term]

character-string-literal ::= ''{character}...'' (el carácter es cualquier carácter del juego de caracteres del origen de datos o del controlador. Para incluir un carácter de comilla literal simple ('') en un literal de cadena de caracteres, use dos caracteres de comillas literales [''''").)

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 es cualquier tipo de datos para el que la columna ""DATA_TYPE"" del conjunto de resultados devuelto por SQLGetTypeInfo es SQL_CHAR o SQL_VARCHAR).

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

dynamic-parameter ::= ?

expresión ::= term | expresión {+|-} término

factor ::= [+|-]primary

insert-value ::=

dynamic-parameter

| Literal

| NULL

| USUARIO

letter ::= lower-case-letter | upper-case-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

| Literal

| ( expresión )

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

select-list ::= * | select-sublist [, select-sublist]... (select-list no puede contener parámetros).

select-sublist ::= expresión

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}

upper-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

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