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
dongdong 

Why I can not use " select * " retrieve data from salesforce?

Hi all,
   Today  I tried to use the following code to retrieve all the data in case table.
 
 QueryResult qr = binding.queryAll("select *  from Case");
 
The result is :  NULLPointerException.
 
 how can I retrieve all the data from case? 
 
Another question is : com.sforce.soap.enterprise.sobject._case, does this class for the following use?
 
QueryResult qr = binding.queryAll("select ??  from Case");
 for (int i = 0; i < qr.getRecords().length; i++)
  _case c = (_case) qr.getRecords(i);
 
..................................................................
 
 
 
 
Rick.BanisterRick.Banister
You must specify each field that you wish returned in the SOQL Select. The "*" is a SQL construct, not a SOQL capability.
dongdong
 what does this class for  com.sforce.soap.enterprise.sobject._case? Is it a mapping for table case?