HOWTO: ODBC API example of binding to a text column as SQL_C_WCHAR
Last updated on JULY 05, 2017
Applies to:Oracle ODBC Driver - Version 10.2.0.5 and later
Information in this document applies to any platform.
When pointing to an AL32UTF8 database, the Oracle ODBC driver will describe the column (via SQLDescribeCol) as type -8 - SQL_C_WCHAR
The following example shows the code needed to print out the data correctly.
Create the following table in an AL32UTF8 database:
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms