Home » SQL & PL/SQL » SQL & PL/SQL » in Operator
in Operator [message #21441] Sat, 03 August 2002 06:04 Go to next message
A Rahim
Messages: 2
Registered: August 2002
Junior Member
When I use <in> operator in forms to update, I am getting invalid number error. Actually query is like this
:TEXT_BOX = '7,8,9';

UPDATE TABLE SET ABC_NO = 234 WHERE EFG_NO IN
(:TEXT_BOX);

Any Help.
Re: in Operator [message #21443 is a reply to message #21441] Sat, 03 August 2002 06:18 Go to previous messageGo to next message
Su
Messages: 154
Registered: April 2002
Senior Member
You can not give a single string, consists of values seperated by comma, for the IN operator's use and let it go. You should give a list of values and then process it. Better you extract the values first from the string and then put them in the IN list. You could use INSTR() and SUBSTR() for this extaction, looking for a comma character and extracting the letters or numbers.

Good luck :)
Re: in Operator [message #21446 is a reply to message #21441] Sat, 03 August 2002 14:35 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Object types is a great way to handle this:

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:110612348061
Previous Topic: Re: users
Next Topic: Re: ora-12560, tns:protocol adapter error
Goto Forum:
  


Current Time: Tue Apr 23 02:18:53 CDT 2024