You need to sign in to do that
Don't have an account?
Swarna
Dynamic sql
How can I write a dynamic sql in apex code?
My need is to construct a SQL according to users inputs and so it has combinations that needs to be checked with several if conditions. I need to create the SQL with those conditions and combinations and then execute it. How can it be achieved?
My need is to construct a SQL according to users inputs and so it has combinations that needs to be checked with several if conditions. I need to create the SQL with those conditions and combinations and then execute it. How can it be achieved?
Swarna,
Right now, you can't do this. There will be a new feature that will be available in the Summer 08 release called Dynamic Apex that will allow you to do this.