public with sharing class batch_practice implements Database.Batchable<sObject> {
public batch_practice() {
}
public Iterable<sObject> start(Database.BatchableContext bc) {
//배치 시작
List<Account> listTarget = new List<Account>();
return listTarget;
}
public void execute(Database.BatchableContext bc, List<sObject> listTarget) {
//배치 실행
Database.insert(listTarget);
}
public void finish(Database.BatchableContext bc){
//배치 종료
}
}