Thread mysql-query länge (17 answers)
Opened by Froschpopo at 2006-10-17 00:21

Froschpopo
 2006-10-17 19:54
#34816 #34816
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
[quote=renee,17.10.2006, 08:41]
Code: (dl )
1
2
3
4
5
my @names = qw(name1 name2 ...);
my $select = 'SELECT fields from tble where name IN('.join(',',('?') x scalar(@names)).')';

my $sth = $dbh->prepare or die $dbh->errstr();
$sth->execute(@names);
[/quote]
das soll wohl $sth->execute($select); heißen

View full thread mysql-query länge