Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl Query Locks A MsSQL Database

by RichardK (Parson)
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015004]
help
Chatterbox?
[Lady_Aleena]: The default perl on the version of cPanel my web hosts uses is 5.8.8 which means I am dreadfully behind. I doubt perl 6 will hit my web host in my lifetime.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-05-29 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?