6 Einträge, 1 Seite |
$sql = "select * from tabelle where ID = " . (join " or ID =", @array) . ";";
$sql = "select * from tabelle where ID in ( " . (join ", ", @array) . ");";
1
2
3
4
{ # block
local $" = " or ID=";
$sql = "select * from tabelle where ID=@array";
} # block
1
2
3
4
{ # block
local $" = ", ";
$sql = "select * from tabelle where ID in (@array)";
} # block
6 Einträge, 1 Seite |