You need to sign in to do that
Don't have an account?
eddie129
SOQL question
Hi all,
I am trying to get all contact data by using query() method with SOQL: "Select Id, LastName, FirstName,... From contact".
Is there any simple statement can do the same thing? (such as "Select * From contact" in SQL)
Thanks in advance.
Code:
Thanks, but my question is about statement, not usage, I should describe my question more clearly.
What I need is a simple term to represent all field in contact object. For example, If I want to get all field data in contact, there are 40 fields need to be written in following statements : (It's too long to be maintained)
"Select Id, LastName, FirstName, Salutation, RecordTypeId, OtherStreet,... From contact"
I want to know if there have a simple term which can replace the field list, so we only need to write:
"Select * From contact"
Is this simple term exist?
I just posted a related problem, but maybe this will help with yours. I wrote this PHP function to get a list of fields for SOQL queries: