You need to sign in to do that
Don't have an account?

Batch class
Hi,
I am running a batch class from annonymous window and my code looks like this.
String query = 'select id, name, Book_Title,'+
'Book_Author__c, Price__c from Book__c';
BatchClassConstructor b = new BatchClassConstructor(query);
Database.executeBatch(b);
Now when i am running the batch i am getting System.QueryException: unexpected token: id;
Please help
I am running a batch class from annonymous window and my code looks like this.
String query = 'select id, name, Book_Title,'+
'Book_Author__c, Price__c from Book__c';
BatchClassConstructor b = new BatchClassConstructor(query);
Database.executeBatch(b);
Now when i am running the batch i am getting System.QueryException: unexpected token: id;
Please help
Update "Book_Title" as "Book_Title__c"
Best Regards,
Mithun.