|
-
Feb 7th, 2009, 12:45 AM
#3
Re: MySQL SQL Query I can not slove it
 Originally Posted by dclamp
You need to use a JOIN.
Code:
SELECT * FROM Users LEFT JOIN News WHERE Users.UsersID = News.NewsID LIMIT 3;
The comma between the table names is equivalent to "inner join".
Has someone helped you? Then you can Rate their helpful post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|