Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Update Command in a PL/SQL Procedure
I'm using Forms 4.5...
I have a procedure that uses the SQL Update command to update an Oracle table.
Notes: :IP_TD text field on my form
(Char 30)
IPIDNo variable declared in the procedure (Number 15) TaxDist column in SegCabl
(Number 5)
IPID column in SegCabl
This example works fine...
UPDATE SegCabl SET TaxDist = :IP_TD WHERE IPID = 4215460;
But when I replace the 4215460 with a form text field or a variable of the same value, it doesn't work...
UPDATE SegCabl SET TaxDist = :IP_TD WHERE IPID = IPIDNo;
or
UPDATE SegCabl SET TaxDist = :IP_TD WHERE IPID = ( :Form_Text_Field );
I don't understand why I can use a variable or text field in the SET part of the clause but not the WHERE part of the clause. Thinking that it might have something to do with data types, I tried setting IPIDNo to both VarChar and Number but it didn't work. Any ideas?
Courtney Received on Thu Sep 16 1999 - 10:23:28 CDT
![]() |
![]() |