By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,985 Members | 2,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,985 IT Pros & Developers. It's quick & easy.

Integer array in where clause

P: 1
Hello,
In function , I passing an integer array containing ID of description table and I want to use this array in where clause something like

SELECT d_base.id AS description_id,
''en'' AS iso_lang,
''US'' AS iso_country_a2,
0 as description_type_id,
id_lists AS description_text
FROM description AS d_base
WHERE d_base.id in (integer_array)

But it does not seem to work.
I also tried with
WHERE d_base.id in (array_to_string(integer_array,'',''))
Still does not work.

Any suggestion?
Aug 16 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 534
I would try
... ANY(integer_array)

you may want to check out the manual: ARRAYS
Aug 17 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.