Assign a single result from a SOQL query into a string variable Biswajeet May 5, 2015 1 Comment on Assign a single result from a SOQL query into a string variable String name = [SELECT Name FROM Account].Name;