apex execute batch code example
Example 1: apex execute batch job
Id batchJobId = Database.executeBatch(new RunThisBatch(), 200);
Example 2: execute batch apex
MyBatchClass myBatchObject = new MyBatchClass();
Id batchId = Database.executeBatch(myBatchObject);