String Constants | SQL External Routine Programming | Teradata Vantage - String Constants - Teradata Vantage - Analytics Database

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2026-03-06
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

Teradata converts string constant values passed to UDFs as follows:

String Constant Value Data Type That Determines Precedence Order
String in apostrophes VARCHAR
Graphic string in apostrophes VARCHAR CHARACTER SET GRAPHIC

Teradata does not implicitly convert character string constants that represent numeric values to numeric types unless the constants are part of an expression. For example, the string constant '1024' remains a character string. However, in an expression such as '1024' - 1, Teradata does convert the character string to a REAL, according to Teradata implicit conversion rules.

See Teradata Vantageā„¢ - Data Types and Literals, B035-1143.