Guest User

Untitled

a guest
Feb 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // Simple query
  2. //////////////////////
  3.  
  4. Account[] accList = [SELECT Name FROM Account WHERE Id IN :accountIdSet];
  5.  
  6. /////////////////////////////////////////
  7. /////////////////////////////////////////
  8.  
  9. // Do you REALLY need that query?
  10. ////////////////////////////
  11.  
  12. Account[] accList;
  13. if (!accountIdSet.isEmpty())
  14. accList = [SELECT Name FROM Account WHERE Id IN :accountIdSet];
Add Comment
Please, Sign In to add comment