Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

%ODBCIN

A format-transformation function that returns an expression in Logical format.

Synopsis

%ODBCIN(expression)

%ODBCIN expression

Arguments

expression The expression to be converted.

Description

%ODBCIN returns expression in the Logical format after passing the value through the field or data type’s OdbcToLogical method. The Logical format is the in-memory format of data (the format upon which operations are performed).

%ODBCIN is a Caché SQL extension.

For further details on display format options, refer to “Data Display Options” in the “Caché SQL Basics” chapter of Using Caché SQL.

Examples

The following example shows the default display format, the %ODBCIN, and the %ODBCOUT formats for the same field.

SELECT FavoriteColors,%ODBCIN(FavoriteColors) AS InVal,
%ODBCOUT(FavoriteColors) AS OutVal
FROM Sample.Person

The following example uses %ODBCIN in the WHERE clause:

SELECT Name,DOB,%ODBCOUT(DOB) AS Birthdate
FROM Sample.Person
WHERE DOB BETWEEN %ODBCIN('2000-01-01') AND %ODBCIN('2010-01-01') 

See Also

%EXTERNAL %INTERNAL %ODBCOUT

FeedbackOpens in a new tab