17.20 - ANSI SQL 1992 Syntax - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2022-06-21
dita:mapPath
uqj1639470627591.ditamap
dita:ditavalPath
nkw1500504256726.ditaval

This section describes how the entry level ANSI SQL 1992 syntax is supported by ODBC Driver for Teradata, including DATE and TIME literals and the functions listed.

Syntax Notes
EXTRACT() None
TRIM() Remove only spaces and 0s

The ANSI syntax for TRIM is very different from ODBC syntax for Teradata syntax.

Migration:

The TRIM function works differently in Teradata and ANSI modes. In Teradata mode, TRIM only removes trailing blanks. In ANSI, TRIM removes leading as well as trailing blanks.

SUBSTRING() The ANSI syntax for SUBSTRING is very different from ODBC syntax for Teradata syntax
CAST() None