Thread DBI MySQL-Abfrage mit Platzhalter: SQL-Statement ausgeben (18 answers)
Opened by MartinR at 2005-12-19 12:11

pktm
 2006-12-08 02:24
#33874 #33874
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
# ...
my $dbh = DBI->connect($data_source, $username, $auth, \%attr) or die "konnte keine Verbindung zur Datenbank aufbauen: " . DBI::errstr();

my $bereichs_sql = qq~
# ...
~;
my $sth = $dbh->prepare($bereichs_sql) or warn "Konnte prepare() nicht ausführen. " . $dbh->errstr();
$sth->execute();

print Dumper $dbh->{ParamValues};
# ...


Ich habe es einmal mit und einmal ohne $sth->execute() ausprobiert.
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread DBI MySQL-Abfrage mit Platzhalter: SQL-Statement ausgeben