1

Hi I have the following Mysql code that works but I was wondering if there was a better, shorter, more efficient way of doing it?

select
images.*,
posts.*
from
mjbox_images AS images,
mjbox_posts AS posts
where
images.post_id = 3 AND posts.post_id = 3
4

1 回答 1

3
SELECT * FROM mjbox_images JOIN mjbox_posts USING (post_id) WHERE post_id = 3
于 2012-06-05T15:27:39.010 回答