473,413 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

WHY IT IS NOT POSSIBLE? Is THERE ANY ALTERNATIVE

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
0 1086

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

Similar topics

7
by: Matt MC | last post by:
Are there any alternatives to the .php file extension that will call it, such as page.xyz? ....or does that need to be setup at the server administration level, or is this not possible at all?
4
by: project2501 | last post by:
are there alternative compilers for python? or different VMs to run the bytecode? similar to IBM java jvm and sun jvm, and other jvms? jikes, gcj?
99
by: Paul McGuire | last post by:
There are a number of messages on the python-dev mail list that indicate that Guido is looking for some concensus to come from this list as to what *one* alternative syntax for decorators we would...
9
by: news.hku.hk | last post by:
I'd like to ask if there is any program that can give me the source file (*.cpp) when i only have the executable file (*.exe) ? Thanks a lot~
10
by: Michael Culley | last post by:
In vb6 it was possible to create an exe as an activeX exe and communicate between 2 apps. Now we have remoting which requires opening a tcp port to listen on, which seems kinda crappy cause another...
6
by: MARTIN LANNY | last post by:
Is there alternative to AxWebBrowser? I spent one whole week trying to make AxWebBrowser refresh php page. It never works. I tried over 10-15 suggestions from Microsoft itself. Refresh just...
4
by: aninnymouse | last post by:
I'm using a library that provides the following function which traverses the graph and calls a provided callback function on each visited vertex: void depth_first_search(Graph *graph, VertexCB...
2
by: Rob | last post by:
I've used Crystal Reports for years and whilst it's been a love-hate relationship, it does it job. But I think it's become rather bloated over time and I have one big issue with it - the...
3
by: =?Utf-8?B?Q2hyaXMgUm9kZW4=?= | last post by:
I am working on an ASP.NET application utilizing .NET 3.5. One page is using a multi-view with 10 views. UpdatePanels are used to navigate from one view to another. There are hundreds of fields and...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.