Returns the number of records that a dynamic SOQL query would return when executed.
Integer i = Database.countQuery(‘select count() from account’);
Note: countQuery will not work if we enter any field inside the count.
count() // ok
count(ID) // error
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.