You need to sign in to do that
Don't have an account?
Harvin
Dynamic Query Building in Apex
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.
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.
String foo = 'Smith';
[select id from contact where lastname = :foo];
Message Edited by jf317820 on 04-04-2008 07:40 PM