Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to do the same thing with UPDATE? how would I do something like:my $dbh = DBI->connect(blah) or die $DBI::errstr; my $sth = $dbh->prepare('INSERT INTO MYTABLE(col1 col2) VALUES (?,?)') +; $sth->execute(@data);
Thanks in advance!my $dbh = DBI->connect(blah) or die $DBI::errstr; my $sth = $dbh->prepare('UPDATE MYTABLE SET col1=?,col2=?'); $sth->execute(@data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: DBI and UPDATE
by Ovid (Cardinal) on Dec 13, 2001 at 01:35 UTC | |
|
Re: DBI and UPDATE
by twerq (Deacon) on Dec 13, 2001 at 01:32 UTC | |
|
Re: DBI and UPDATE
by Anonymous Monk on Dec 13, 2001 at 02:56 UTC | |
by mpeppler (Vicar) on Dec 13, 2001 at 03:45 UTC | |
|
Re: DBI and UPDATE
by Steve_p (Priest) on Dec 13, 2001 at 02:08 UTC |