1
Databases / Re: Database standards OR Am I doing this right?
« Last post by paweld on Today at 07:52:10 am »The Zeos as of version 8 has a TZTransaction component. But also in SQL itself you can combine several queries into one, for example:
Of course, the query can be more compiled and have some additional functions/procedures which can significantly increase the transaction time.
- BEGIN tran
- UPDATE tableA SET col1='aaa' WHERE id=1
- UPDATE tableB SET [DATE]=getdate() WHERE ida=1
- INSERT INTO history (ida, changes_date)
- SELECT 1, getdate()
- commit tran