function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sk3501.3915272120779841E12sk3501.3915272120779841E12 

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
MithunPMithunP
Hi,

Update "Book_Title" as "Book_Title__c"

Best Regards,
Mithun.