in reply to Inserting values in to table with DBI
In standard SQL, this is either:
if you're trying to modify the records in place, or if you really wanna create a whole new set of records, more like:UPDATE disease_types SET adapted_code = "A" || code;
INSERT INTO disease_types (adapted_code) SELECT "A" || code FROM disease_types;
You can execute either of these with a $dbh->do(...) operation.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Inserting values in to table with DBI
by Win (Novice) on Dec 08, 2003 at 13:59 UTC |