HOWTO: ODBC API example of binding to a text column as SQL_C_WCHAR

(Doc ID 1583949.1)

Last updated on JULY 05, 2017

Applies to:

Oracle ODBC Driver - Version 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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms