Is is possible to get the field expression from TMyQuery?
Posted: Wed 10 Aug 2011 16:01
SQL :
SELECT Table1.FieldA, CONCAT(Table1.FieldB,TABLE2.FieldC) AS FieldD
FROM Table1 LEFT JOIN Table2.....
Is it possible to get back CONCAT(Table1.FieldB,TABLE2.FieldC) from TMyQuery or TField of FieldD?
In TField, FieldD FieldName is of cause FieldD but the origin is also FieldD.
I would like the original expression (base on user choice of filters etc) to create another SQL with Where or so.
Thanks you!
SELECT Table1.FieldA, CONCAT(Table1.FieldB,TABLE2.FieldC) AS FieldD
FROM Table1 LEFT JOIN Table2.....
Is it possible to get back CONCAT(Table1.FieldB,TABLE2.FieldC) from TMyQuery or TField of FieldD?
In TField, FieldD FieldName is of cause FieldD but the origin is also FieldD.
I would like the original expression (base on user choice of filters etc) to create another SQL with Where or so.
Thanks you!