function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hey thanks.. this works!!!!
Message Edited by okaylah52 on 07-22-2008 02:11 AM
String fieldName = 'Name';
String target = 'abc';
String sql = 'select ' + fieldName + ' from Account where field = \'' + target + '\'';
List<Account> result = Database.query(sql);
(I haven't tried this but, from documentation, it should work. Give it a try. Hope this helps)
Hey thanks.. this works!!!!