cdherold has asked for the wisdom of the Perl Monks concerning the following question:
I'm attempting to do a MySQL UPDATE using PERL.
I've got the INSERT working alright ...
$sth = $dbh->prepare("INSERT INTO snp_db (rs,chr_position,band,alleles +,het,validated,gene,role,relative_pos,aa_change,flanking_seq) VALUES +(?,?,?,?,?,?,?,?,?,?);"); $sth->execute($rs_number,$position,$band,$alleles,$het,$val,$gene,$rol +e,$pos,$aa);
but my UPDATE doesn't seem to work ...
$sth = $dbh->prepare("UPDATE snp_db SET (chr_position,band,alleles,het +,validated,gene,role,relative_pos,aa_change,flanking_seq) VALUES (?,? +,?,?,?,?,?,?,?) WHERE rs = $rs_number;"); $sth->execute($position,$band,$alleles,$het,$val,$gene,$role,$pos,$aa) +;
Any ideas?
thanks monks,
chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL UPDATE in PERL
by Cabrion (Friar) on Feb 25, 2003 at 01:47 UTC | |
|
Re: MySQL UPDATE in PERL
by pfaut (Priest) on Feb 25, 2003 at 01:49 UTC | |
|
Re: MySQL UPDATE in PERL
by tadman (Prior) on Feb 25, 2003 at 01:59 UTC | |
|
Re: MySQL UPDATE in PERL
by Hagbone (Monk) on Feb 25, 2003 at 02:02 UTC | |
by Cabrion (Friar) on Feb 25, 2003 at 03:24 UTC | |
by mpeppler (Vicar) on Mar 06, 2003 at 01:18 UTC | |
|
Re: MySQL UPDATE in PERL
by jaco (Pilgrim) on Feb 25, 2003 at 02:28 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |