Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Preparing unicode SQL statements in OCI
After poking around the documentation some more and running some small
test programs, I think I've figured out the solution. It's a two step
process:
The resulting multi-byte encoding of the SQL statement can be supplied to OCIStmtPrepare().
Michael Skarpelos
mskarpelos_at_nquire.com (Michael J. Skarpelos) wrote in message news:<abfca438.0110151653.158be90e_at_posting.google.com>...
> The OCI 8i (8.1.5) documentation shows how bind unicode input
> variables and define unicode output variables, but what if the SQL
> statement itself is in unicode (for example, to access unicode column
> names or table names, or to specify unicode character literals in the
> WHERE and HAVING clauses)? Is there a way to prepare such a unicode
> SQL statement? I would have expected a flag parameter to
> OCIStmtPrepare() indicating unicode SQL text, but unfortunately it
> doesn't seem to be that simple.
>
> Michael Skarpelos
Received on Thu Oct 25 2001 - 18:11:56 CDT