List:General Discussion« Previous MessageNext Message »
From:Carl Troein Date:November 10 2001 1:21pm
Subject:Re: Beginner SQL Question
View as plain text  
John Morton writes:

> Can someone tell me why this will not work, please
> 
> SELECT * FROM tbl1 WHERE column =(SELECT * FROM tbl2 WHERE intcolumn =
> 15);

That's a subselect, and a search in the manual gave me this
page, which probably has all the info you need:

http://www.mysql.com/doc/A/N/ANSI_diff_Sub-selects.html

//C

-- 
 Carl Troein - C carl@stripped | http://pixelmagic.dyndns.org/~cirdan/
 Amiga user since '89, and damned proud of it too.

Thread
Beginner SQL QuestionJohn Morton10 Nov
  • Re: Beginner SQL QuestionCarl Troein10 Nov
  • Re: Beginner SQL QuestionSteve Meyers10 Nov
  • Re: Beginner SQL QuestionBruce Ferrell10 Nov
  • Re: Beginner SQL QuestionShankar Unni10 Nov
  • Re: Beginner SQL QuestionNguyen Trong Phuc10 Nov
  • Re: Beginner SQL QuestionNguyen Trong Phuc10 Nov
  • Re: Beginner SQL QuestionShankar Unni10 Nov
  • Re: Beginner SQL QuestionNguyen Trong Phuc10 Nov