Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: DBI Update dynamically

by 1nickt (Canon)
on Feb 23, 2018 at 14:54 UTC ( [id://1209834]=note: print w/replies, xml ) Need Help??


in reply to DBI Update dynamically

Hi, it's not possible to UPDATE without knowing the column names. You could get them via a SELECT prior to your UPDATE.

In any case it would not be a good design to do what you want since your program would break as soon as the DB schema changes with a new column added or one removed, etc.

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-26 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found