← All questions
ApexMedium
SOQL for loops
What is the main advantage of iterating a query with a SOQL for loop like this, instead of assigning the query to a List first?
for (Account a : [SELECT Id, Name FROM Account WHERE Industry = 'Technology']) {
// process each account
}