Salesforce SELECT 実行
基本
List<Account> accounts1 = [ SELECT Id, Name From Account ];
プログラム中で組み立てる場合等
List<Account> accounts2 = Database.query('SELECT Id, Name From Account');
List<Account> accounts1 = [ SELECT Id, Name From Account ];
List<Account> accounts2 = Database.query('SELECT Id, Name From Account');