Difference between SQLUpdate.Text and SQL.Text.
Posted: Fri 20 Jan 2012 06:56
Hello,
I am struggling to understand the difference between SQLUpdate.Text and SQL.Text.
the following code works correctly
SQL.Clear;
SQL.Text:=('UPDATE tbl_invoices .........
pgquery1.Execute;
but the following one doesn't
SQLUpdate.Clear;
SQLUpdate.Text:=('UPDATE tbl_invoices .........
pgquery1.Execute;
I understand that pgquery1.Execute operates on SQL.Text only and I can use this parameter for updates, deletions etc.
If so, why do I have the parameters SQLUpdate, SQLRefresh, SQLInsert etc. ? How and when do I have to use them ?
Many thanks
Pio Pio
I am struggling to understand the difference between SQLUpdate.Text and SQL.Text.
the following code works correctly
SQL.Clear;
SQL.Text:=('UPDATE tbl_invoices .........
pgquery1.Execute;
but the following one doesn't
SQLUpdate.Clear;
SQLUpdate.Text:=('UPDATE tbl_invoices .........
pgquery1.Execute;
I understand that pgquery1.Execute operates on SQL.Text only and I can use this parameter for updates, deletions etc.
If so, why do I have the parameters SQLUpdate, SQLRefresh, SQLInsert etc. ? How and when do I have to use them ?
Many thanks
Pio Pio