Re: [GENERAL] Getting actual number of rows updated

2005-08-08 Thread Tino Wildenhain
Am Montag, den 08.08.2005, 00:32 -0700 schrieb CSN: > Is it possible to have PG report the actual number of > rows that actually CHANGED in an update command? e.g. > > UPDATE items set name=replace(name,'abc','def'); > UPDATE 9000 -- Actually only 3 were changed > > rather than update reporting a

Re: [GENERAL] Getting actual number of rows updated

2005-08-08 Thread Patrick . FICHE
All the raws are updated if there is no WHERE clause. If you want the UPADATED rows, just specify the WHERE clause and it will really improve your performance... EX : UPDATE itemp SET name = replace( name, 'abc', 'def' ) WHERE name LIKE '%abc%'