Skip to content

ODBC SQL Syntax Support

ODBC SQL is the vendor-neutral SQL grammar defined by the ODBC specification, best known for its escape-sequence syntax — {fn ...} scalar functions, {d '...'} / {t '...'} / {ts '...'} date-time literals, {call ...} procedure invocations, and {oj ...} outer joins — that ODBC drivers translate into native SQL.

General SQL Parser (GSP) includes a dedicated ODBC grammar, so SQL written against ODBC drivers can be parsed into a full AST, validated offline, and formatted without connecting to any database. This is useful when analyzing application code that targets multiple backends through a single ODBC layer.

See the ODBC Keyword Compatibility Reference for keyword handling details.