Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: [OT] SQL "on duplicate key" custom action

by haukex (Bishop)
on Oct 13, 2021 at 09:47 UTC ( #11137472=note: print w/replies, xml ) Need Help??


in reply to Re: [OT] SQL "on duplicate key" custom action
in thread [OT] SQL "on duplicate key" custom action

It depends on what DB, but it's basically the following to "ignore" it, INSERT INTO records (PriKey, Foo, Bar) VALUES (1, 'Hello', World') ON DUPLICATE KEY UPDATE Foo=Foo;

How does that address my question?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2021-12-09 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?