The Database.merge method returns a Database.MergeResult object for each merged record.
The following are methods for MergeResult. All are instance methods.
public List<Database.Error> getErrors()
Type: List<Database.Error>
public Id getId()
Type: ID
public Boolean isSuccess()
Type: Boolean