I see some people joining in this way
SELECT * FROM table1 JOIN table 2 ON table1_id = table2_id
where, as some people do,
SELECT * FROM table1 WHERE table1.table1_id = tabl2.table2_id;
what difference and what is more efficient and benificial
That's why
SELECT * FROM table1 INNER JOIN table 2 ON table1_id = table2_id SELECT * FROM table1 LEFT JOIN table 2 ON table1_id = table2_id SELECT * FROM table1 RIGHT JOIN table 2 ON table1_id = table2_id SELECT * FROM table1 FULL OUTER JOIN table 2 ON table1_id = table2_id
, . , , . , , , , , , , . , SQL, , , , .
-, , , , , , , - .
, ?
( ) . ( ) .
, , , SQL .
€: : http://ibmsystemsmag.blogs.com/db2utor/2008/04/performance-com.html
, INNER JOIN IMPLICIT JOIN . , DB2 V4 V5, , , .
( ) , , , ( ) . , , mysql - , SQL , .
: ; .
No difference. These are the same queries. (The first request is similar to the "old school", because people who remember that the union expression is not present at all, and the second request is like the "new school", which cannot depict how to join, will work without unnecessary words :). This is a joke)
Source: https://habr.com/ru/post/1757170/More articles:Session temporary variables in PHP? I try to block people for failed logins - javascriptUnderstanding an event prepared by documents - javascriptJquery-ui buttons are sometimes slow to render, an alternative to css? - csshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1757168/creating-a-database-sandboxtesting-area-for-users-to-run-what-if-scenarios&usg=ALkJrhhEZSNlzcKuwEY1Q7B9LRx4_cpZHwPublic Domain or No Binary Attribution FFT Lib? - licensingLinux: how to change shared library name in dynamic section of ELF binary - cПовторное использование form_for для просмотра ошибок почтовой программы при подделке - ruby-on-rails-3Can this be done using OpenGL? - c ++FlexSDK to compile the mxml file - lexкак найти значения столбцов для выбранной строки в radgrid - telerikAll Articles