• Harvin
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Please anybody can help regarding dynamic query building in Apex. For example I have a variable

String sSql = 'Select Id, Name from User';

User[] userObjs;
userObjs = [sSql];

Here in the above step it throwing synax error.  Please help me regarding this, how I can form dynamic query.


  • April 04, 2008
  • Like
  • 0