Talk About Network

Google





Data Bases > IBM DB2 > Re: Problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 9081 of 9564
Post > Topic >>

Re: Problem with IN predicate

by Lennart <Erik.Lennart.Jonsson@[EMAIL PROTECTED] > Jul 13, 2008 at 07:18 AM

On Jul 13, 3:13 pm, amir <ahsha...@[EMAIL PROTECTED]
> wrote:
> I have a query in Oracle like this:
> Select 1 from dual
> where
> (1,1) IN ( (1,1), (2,1) )
>
> and want to convert it to DB2.
> I tried this query:
> Select 1 from sysibm.sysdummy1
> where
> (1,1) IN ( (1,1), (2,1) )
> I replaced "," with SPACE and ";" but got error.
>
> It will be appreciated to help me to solve this problem.
> Best,

I assume that your real query is different and that this is just an
example? Anyhow, try:

select 1 from sysibm.sysdummy1 where (1,1) IN ( values (1,1), (2,1) )

/Lennart
 




 5 Posts in Topic:
Problem with IN predicate
amir <ahsharif@[EMAIL   2008-07-13 06:13:54 
Re: Problem with IN predicate
Lennart <Erik.Lennart.  2008-07-13 07:18:41 
Re: Problem with IN predicate
amir <ahsharif@[EMAIL   2008-07-14 22:28:03 
Re: Problem with IN predicate
Lennart <Erik.Lennart.  2008-07-15 02:22:48 
Re: Problem with IN predicate
amir <ahsharif@[EMAIL   2008-07-19 04:16:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 21:28:49 PST 2009.