TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.

Reply
 
Thread Tools Display Modes
Old April 14th, 2010, 04:11 AM   #1 (permalink)
Captain Obvious
Guest
 
Posts: n/a
Default MYSQL table selection help?

Trying to:

SELECT id FROM table_a WHERE condition='true'
Gets an array of IDs to be used in the next query

SELECT * FROM table_b WHERE id=any of the previous IDs



Whats the best way to do this, can it be done in one query?
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
mysql, selection, table


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Announces MySQL Cluster 7.1 News Bot News 0 April 13th, 2010 09:47 PM
Will a primary key or index speed up my MySQL table? Mr Quan MySQL 0 April 13th, 2010 06:07 AM
MySQL table join (joining a column from one table to the row of another more like)? Grizzley G MySQL 0 April 12th, 2010 01:17 AM
Sorting PHP MySQL table by links? christopher wood MySQL 1 April 4th, 2010 02:59 AM
How do I make my MySQL table automatically make a timestamp when new data is added? Carbonbased Lifeform MySQL 0 March 31st, 2010 03:40 PM

 
Forum Stats
Members: 14,323
Threads: 20,331
Posts: 27,684
Total Online: 38

Newest Member: estiliwer

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 06:18 AM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO