•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 373,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,467 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 503 | Replies: 2
![]() |
•
•
Join Date: Mar 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
how to write nested queries
ex:
in a function.
i tried this but MYSQL is getting stoped.
is there any alternate.
ex:
sql Syntax (Toggle Plain Text)
SELECT * FROM [table1] WHERE [COLUMN] IN (SELECT [COLUMN] FROM [table2])
in a function.
i tried this but MYSQL is getting stoped.
is there any alternate.
Last edited by peter_budo : Apr 1st, 2008 at 7:19 am. Reason: Keep It Organized - please use [code] tags
Your not really specifiying anything in your where clause. Is the value taken from table2 equal to, not equal to, less than, etc.
If you find my post useful please add to my reputation!! Thanks!
ajtrichards web solutions
http://www.ajtrichards.co.uk
ajtrichards web solutions
http://www.ajtrichards.co.uk
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
Other Threads in the MySQL Forum
- Previous Thread: Queries and sub-queries
- Next Thread: mysql problem


Linear Mode