David Egan
SQL Update Question March 23, 2008 08:11PM |
UPDATE DET SET REFLINE = REFLINE -1 WHERE DET.REFERENCE = HED.REFERENCE AND DET.REFLINE > 3So far in my testing this has worked fine but I am concerned as to whether we can rely on SQL always processing it in refline order. We have an index on Reference/Refline, but the UPDATE statement doesn't allow an order clause. Because of the potential size of the tables and the usage we really don't want to do it on a line by line basis for performance reasons. Databases are HFCS and MSSQL (via OLED
Arie
Re: SQL Update Question March 24, 2008 11:23AM |
Fabrice Harari
Re: SQL Update Question March 24, 2008 01:26PM |
David Egan
Re: SQL Update Question March 25, 2008 04:30AM |
David Egan
Re: SQL Update Question March 25, 2008 04:40AM |
Arie
Re: SQL Update Question March 25, 2008 09:05AM |
Fabrice Harari
Re: SQL Update Question March 25, 2008 10:30AM |
David Egan
Re: SQL Update Question March 25, 2008 11:06AM |
Leo Voet
Re: SQL Update Question March 25, 2008 01:52PM |
Fabrice Harari
Re: SQL Update Question March 25, 2008 02:07PM |