Pages
Home
About Me
For Contact
January 5, 2012
How to execute a SOQL query using APEX?
String soql = "SOQL Query";
list_namae = Database.(soql);
Example:
List<Account> acc {get; set;}
String soql = "SELECT Name FROM Account";
acc = Database.query(soql);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment