Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Simple query
- //////////////////////
- Account[] accList = [SELECT Name FROM Account WHERE Id IN :accountIdSet];
- /////////////////////////////////////////
- /////////////////////////////////////////
- // Do you REALLY need that query?
- ////////////////////////////
- Account[] accList;
- if (!accountIdSet.isEmpty())
- accList = [SELECT Name FROM Account WHERE Id IN :accountIdSet];
Add Comment
Please, Sign In to add comment