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

WHY IT IS NOT POSSIBLE? Is THERE ANY ALTERNATIVE

P: 1
Hai all.

I have created a function which is
Expand|Select|Wrap|Line Numbers
  1. CREATE OR REPLACE FUNCTION test1(n INTEGER) RETURNS SETOF INTEGER AS
  2. $$
  3. SELECT id from emp where id>$1;
  4. $$
  5.  LANGUAGE sql;
I am using this function in my query as
Expand|Select|Wrap|Line Numbers
  1. SELECT name FROM emp WHERE id IN (test1(5));
Here i am getting error as You cannot use In argument when it returns set of values.
Please solve it.
Oct 22 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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