http://www.perlmonks.org?node_id=1015004


in reply to Perl Query Locks A MsSQL Database

Why do it as two queries?

Isn't it possible to do it with just one update?

update table set field_2 = field_1 where field_4 = 'foo' and field1 != field_2;

Or am I missing something?