Select and Update-syntax with TMSQuery component
Posted: Thu 29 May 2008 10:13
I have a query like
SELECT Fld1,Fld2,Fld3,Fld4,Fld5,Fld6
FROM Table1
WHERE Fld1=
The table is defined with the following indexes:
Key0 / Unique / on Fld1
Key1 / Unique / on Fld2,Fld3
When I update Fld4 and Fld5 and use SQL-monitor I see the following update statement....
UPDATE Table1 SET Fld4=,Fld5=
WHERE Fld1= AND Fld2= AND Fld3=
How can I setup TMSQuery component that I will get the following update statement instead?
UPDATE Table1 SET Fld4=,Fld5=
WHERE Fld1=
SELECT Fld1,Fld2,Fld3,Fld4,Fld5,Fld6
FROM Table1
WHERE Fld1=
The table is defined with the following indexes:
Key0 / Unique / on Fld1
Key1 / Unique / on Fld2,Fld3
When I update Fld4 and Fld5 and use SQL-monitor I see the following update statement....
UPDATE Table1 SET Fld4=,Fld5=
WHERE Fld1= AND Fld2= AND Fld3=
How can I setup TMSQuery component that I will get the following update statement instead?
UPDATE Table1 SET Fld4=,Fld5=
WHERE Fld1=