Which is better: Distinct or Group By

后端 未结 6 990
南方客
南方客 2021-02-07 12:45

Which is more efficient?

SELECT  theField
FROM    theTable
GROUP BY theField

or

SELECT  DISTINCT theField
FROM    theTable
         


        
6条回答
  •  执念已碎
    2021-02-07 13:25

    Hmmm...so far as I can see in the Execution Plan for running similar queries, they are identical.

提交回复
热议问题