OK Once I pass the String in to the SP how do I create the IN predicate within the query since it is expecting a list of INTegers? So if I passed '123,222,333' in how can I get th evalues into the query:
select * from tablex where id in (xxx)
I want to pass a number of Integers into a Stored Procedure that I can use in a query of the stored procedure. I am trying to figure out the best way to do this.
The Query is something like this:
Select * from xtable where id in (IDList)
I want to be able to pass 1-x ID's into the Stored...
Hello.
I have this query:
select distinct a.callid,
case when a.appsequencenbr = 1 then char(a.appid)
else ' '
end as appid1,
case when a.appsequencenbr = 2 then char(a.appid)
else ' '
end as appid2,
case when a.appsequencenbr = 3 then char(a.appid)
else ' '
end as appid3,
case when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.