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 JULY 05, 2017

Applies to:

Oracle ODBC Driver - Version 10.2.0.5 and later
Information in this document applies to any platform.

Goal

 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:

 

Solution

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
Goal
Solution


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.