Examples of syntax diagrams (SQL)
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Examples of syntax diagrams (SQL)
In this example, GRANT, RESOURCE, DBA,
and TO are keywords. You must specify RESOURCE, DBA,
or both, and at least one user_name. Optionally
you can specify additional user_name items; each
subsequent user_name must be preceded by a comma:
|
This excerpt from an ODBC application invokes a stored procedure using the ODBC syntax
{callprocedure_name( param ) }, where
braces and parentheses are part of the language:
|
In this example, you must specify a table_name, view_name, or synonym, but you can choose only one. In all SQL syntax, if you specify the optional owner_name qualifier, there must not be a space between the period separator and table_name, view_name, or synonym:
|
In this example, you must specify table_name or view_name:
|
In this example, you must include one expression (expr) or
column position (posn), and optionally you can
specify the sort order as ascending (ASC) or descending
(DESC). You can specify additional expressions
or column positions for sorting within a sorted result set. The
SQL engine orders the rows on the basis of the first expr or posn.
If the values are the same, the second expr or posn is
used in the ordering:
|