Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^7: mysql update table how to

by poj (Abbot)
on Mar 20, 2019 at 17:03 UTC ( #1231504=note: print w/replies, xml ) Need Help??


in reply to Re^6: mysql update table how to
in thread mysql update table how to

Why take the risk, it's easy enough to avoid

my $sql= 'UPDATE EmployerJobs SET Disabled = ? WHERE USERID = ?'; my $dbh = DB::connect (); my $count = $dbh->do($sql,undef,$DISABLED,$userid); $dbh->disconnect (); printf "%d records updated\n",$count;

also be aware that by not using the ->update_record() method in package DB::TableInfo you could be missing important audit logging or database consistency/integrity checks.


poj

Replies are listed 'Best First'.
Re^8: mysql update table how to
by VC (Novice) on Apr 07, 2019 at 22:48 UTC
    Thanks, That's a good Idea!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2022-05-28 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?