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 -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -