Home » Developer & Programmer » Forms » Comparision between number and varchar2 string
Comparision between number and varchar2 string [message #362806] Thu, 04 December 2008 03:15 Go to next message
hiteshkanjaria
Messages: 8
Registered: September 2008
Junior Member
Hi,

I have a table called test1(col1 number,col2 varchar2).
I want to query the data from the table by filtering col1 column.

Now I am executing the query,
Select * from test1 where col1 IN (:var_name);
by passing the string (12,23,54,76,34) of type varchar2. So when I comparing it it gives me error of ORA-01722.

Can you suggest me how to solve the problem.

Re: Comparision between number and varchar2 string [message #362831 is a reply to message #362806] Thu, 04 December 2008 04:05 Go to previous message
Littlefoot
Messages: 20888
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Search for "varying elements in IN list" (either here, or Ask Tom).
Previous Topic: calendar control in 10 g
Next Topic: Executing Query through parameter
Goto Forum:
  


Current Time: Sat Dec 03 09:50:15 CST 2016

Total time taken to generate the page: 0.09803 seconds