7 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$dbh->do(" UPDATE firma
SET Konzern = '$$items[0]->{value}',
Firma = '$$items[1]->{value}',
Zusatz1 = '$$items[2]->{value}',
Zusatz2 = '$$items[3]->{value}',
Strasse = '$$items[4]->{value}',
PLZ = '$$items[5]->{value}',
Ort = '$$items[6]->{value}',
Land = '$$items[7]->{value}',
Telefon = '$$items[8]->{value}',
Fax = '$$items[9]->{value}',
Email = '$$items[10]->{value}',
Webadresse = '$$items[11]->{value}',
KAM = '$$items[12]->{value}'
WHERE eid = $eid
");
$$items[0..12]->{value}
1
2
3
$sth = $dbh->prepare("UPDATE table SET column=? where ID=Wert;");
$sth->execute($Skalar);
$sth->finish();
1
2
3
my $items = [ {'value' => '1'}, {'value' => '2'}, {'value' => '7'}, ];
my @bag;
for (@$items) { push @bag, $_->{'value'}; }
$sth->execute(@bag);
1
2
3
$sth = $dbh->prepare("UPDATE table SET column=? where ID=Wert;");
$sth->execute($Skalar);
$sth->finish();
$sth = $dbh->do("UPDATE table SET column=? where ID=Wert;", undef, $Skalar);
7 Einträge, 1 Seite |