How does the database handle this kind of join statement?

select * from table1 t1 left join table2 t2 on t1.id > t2.id;

for this kind of non-equal situation, do you want to take nested or Hash???

Mar.28,2021

merge join


this is sql server's, not MySQL's. If it is a large table, use hash join, medium and small tables, use merge join, if it is a small table, use nested join

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4d61d-44f24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4d61d-44f24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?