If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Select In Select

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-07, 12:02
bono56 bono56 is offline
Registered User
 
Join Date: May 2004
Posts: 133
Post Select In Select

hi
is it possible in MySql to SELECT in the result of another SELECT?
somethin like this statement:
Code:
SELECT * FROM Cars WHERE car_type_id IN
(
SELECT car_type_id FROM Car_Types
)
Reply With Quote
  #2 (permalink)  
Old 03-02-07, 14:21
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
yes but only if you are on version 4.1 or newer.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On