Doyle has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advancemy $sql = "Insert into tableone values('1', '2', '3') my $nextsql = "Insert into tabletwo values('4', '5', '6') my $lastsql = "Insert into tablethree values('7', '8', '9') my $loadHandle = $dbh->prepare("$sql; $nextsql; $lastsql"); $loadHandle->execute || die "Could not execute SQL statement ... maybe invalid?";
2005-02-25 Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compound Sql Statement
by dragonchild (Archbishop) on Feb 25, 2005 at 13:59 UTC | |
by Doyle (Acolyte) on Feb 25, 2005 at 14:39 UTC | |
by sgifford (Prior) on Feb 25, 2005 at 15:16 UTC | |
|
Re: Compound Sql Statement
by dbwiz (Curate) on Feb 25, 2005 at 15:30 UTC | |
by Doyle (Acolyte) on Feb 25, 2005 at 16:06 UTC | |
|
Re: Compound Sql Statement
by jfroebe (Parson) on Feb 25, 2005 at 14:49 UTC | |
by Doyle (Acolyte) on Feb 25, 2005 at 15:09 UTC | |
by sgifford (Prior) on Feb 25, 2005 at 15:14 UTC |