Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Case as a field name in Procedures

Status
Not open for further replies.

mozgheib

Programmer
Dec 14, 2003
50
KW
Hello,

I have an application that references a table with
one of its fields named case.

Now I have an insert statement that reads from the
tables as follows :

insert into tnkinv
select a.id, b.prop,b.value_,b.date_,seq5_tnkinv.nextval,sysdate,user
from "_TANKS" b, tanks a
where a.id = b.id
and a.type = 'PROCESS'
and to_char(b.date_,'dd/mm/yyyy') = to_char(sysdate, 'dd/mm/yyyy')
and b.CASE = 'BASE';


This statement run fine in sqlplus. But the problem
is when I put it in a stored procedure, the procedure
complains that I can't used the case as a field name.
It gives me error number PLS-00103.

Any ideas? I really need it to be part of my stored proc.

Thanks
 
Thanks a lot. Your help is very much appreciated
it resolved my problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top