Skip to main content

%ODBCIN

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

Synopsis

%ODBCIN(expression)

%ODBCIN expression

Arguments

Argument Description
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