(and remember to add parameter variables or values in the execute() call, if your sql statement has any "?" placeholders).use strict; use DBI; my $dbh = DBI::connect( ... ) or die "DBI::connect failed"; my $sql = <<ENDSQL; SELECT ... FROM ... WHERE ... ... ENDSQL my $sth = $dbh->prepare( $sql ) or die "DBI::prepare() failed"; $sth->execute( ); ...
In reply to Re^3: Unable to run SQL query
by graff
in thread Unable to run SQL query
by Rocko19
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |