Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Perl Query Locks A MsSQL Database

by RichardK (Vicar)
on Jan 23, 2013 at 19:29 UTC ( #1015004=note: print w/ replies, xml ) Need Help??

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?

Comment on Re: Perl Query Locks A MsSQL Database
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015004]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-11-30 18:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (778 votes), past polls