select - Mysql - Is there a better way to retrieve data from two tables with the same id? -


hi have following mysql code works wondering if there better, shorter, more efficient way of doing it?

select images.*, posts.* mjbox_images images, mjbox_posts posts images.post_id = 3 , posts.post_id = 3 

select * mjbox_images join mjbox_posts using (post_id) post_id = 3 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -