My Oracle Support Banner

HOWTO: ODBC API example of binding to a text column as SQL_C_WCHAR (Doc ID 1583949.1)

Last updated on NOVEMBER 18, 2019

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:



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.