What is the difference between these two queries:
SELECT `threads`.`id` AS `threads.id` , `posts`.`id` , `posts`.`content` FROM `threads` JOIN `posts` ON `threads`.`id` = `posts`.`thread_id`
and
SELECT `threads`.`id` AS `threads.id` , `posts`.`id` , `posts`.`content` FROM `threads` , `posts` WHERE `threads`.`id` = `posts`.`thread_id`
Both of them return the same data.
source share