fork download
  1. for ( Contact c : [SELECT Id, LastName FROM Contact WHERE CreatedDate = TODAY] )
  2. {
  3. Account a = [SELECT Id, Name FROM Account WHERE CreatedDate = TODAY LIMIT 5]; c.AccountId = a.Id; update c;
  4. }
  5.  
Success #stdin #stdout #stderr 0.01s 7876KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog:1: parse error, expected ')'