in reply to Quoting in DBI sql query for on the fly query
also see DBI's quote function. DBImy $sqlstatement = q{ SELECT Table1.Name, Table1.Address, Table1.City, Table1.State, Table1.ZIP, Table1.Phone FROM Table1 WHERE Table1.BusType = ?}; my $sth = $dbh->prepare($sqlstatement); foreach my $line (<DATA>) { chomp $line; $sth->execute( $line ); # your fetch here fetch }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Quoting in DBI sql query for on the fly query
by ParisR (Acolyte) on Oct 29, 2004 at 02:08 UTC | |
by nedals (Deacon) on Oct 29, 2004 at 05:53 UTC | |
by runrig (Abbot) on Oct 29, 2004 at 05:55 UTC | |
by ryantate (Friar) on Oct 29, 2004 at 19:04 UTC |