Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> bind variables in OCI select
Hello,
I'm trying to bind variables as part of an OCI select statement. I've tried using the same sql as I would in Pro*C. Here it is:
select col1 into :COL1 from my_table
When I attempt this I get the error:
obndra: ORA-01036: illegal variable name/number
Is there an OCI equivalent to this Pro*C SQL?
The Oracle servers tested with this were 7.1.6, 7.3.3 and 8.0.3.
Thanks in advance.
Mike Duval
Senior Programmer/Analyst - Publishing Systems / Online Systems Section
American Institute of Physics mduval_at_aip.orgWoodbury, NY 11797-2999
Voice: 516-576-2368 FAX: 516-576-2615
========================================================================
-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Mon May 04 1998 - 00:00:00 CDT
![]() |
![]() |