Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I do this SELECT in MySQL?

Status
Not open for further replies.

rubis

Programmer
Jun 21, 2001
54
0
0
GB
Hi all,

The following is my statement.

SELECT TW1.blk
FROM tbWORD AS TW1, tbDIV AS TD
WHERE TW1.word = TD.word
GROUP BY TW1.blk
HAVING COUNT(TW1.word) = (SELECT COUNT(word) FROM tbDIV);

Once I submit to MySQL, it said syntax error near SELECT COUNT(word) FROM tbDIV.
 
No you can't yet.
They don't have subselects! But this is expected soon.
Read their documentation on how to avoid this problem. there is a special link in the doc(html) "functionality missing for mysql" 1.4.4.1 subselects

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top