function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RongzhongHuangRongzhongHuang 

question about SOQL

Hi guys,

 

In SOQL, you can do like [SELECT Id, Name FROM Account ORDER BY Name LIMIT 1].

I was wondering what is the sequence of 'ORDER BY' and 'LIMIT 1', does it do 'ORDER BY' or do 'LIMIT 1' firstly?

DaveHagmanDaveHagman

ORDER BY then the Limit