which query is better and efficient - mysql

后端 未结 5 1318
执笔经年
执笔经年 2021-01-05 08:47

I came across writing the query in differnt ways like shown below Type-I

SELECT JS.JobseekerID
         , JS.FirstName
         , JS.LastNam         


        
5条回答
  •  忘掉有多难
    2021-01-05 08:57

    in the most code i've seen, those querys are done like your Type-II - but i think Type-I is better because of readability (and more logic - a join is a join, so you should write it as a join (althoug the second one is just another writing style for inner joins)).

    in performance, there shouldn't be a difference (if there is one, i think the Type-I would be a bit faster).

提交回复
热议问题