I was trying to find the way to create dinamically the select statement of a SQL. Is there a way to create the SELECT statement using something like ADDWHERE or ORDERBY methods?
Thanks in advance
Jalin
Maybe a suggestion
You should use the TCustomMyDataSet.SQL property and set the SELECT statement like this:
Code: Select all
MyQeury.SQL.Text := 'SELECT * FROM tablename';