Thread SQL::Abtract und update (4 answers)
Opened by Froschpopo at 2007-11-22 18:44

Froschpopo
 2007-11-22 18:44
#102814 #102814
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Wie mach ich das eigentlich, wenn ich z.B. ein DATETIME aktualisieren möchte?

Code: (dl )
1
2
3
4
5
6
7
my $sql = SQL::Abstract->new;

my %fields = (datum => 'NOW()');

my ($sth, @bind) = $sql->update('users', \%fields);

print @bind,"\n";


Das scheint er NOW() an diesem Ort nicht zu mögen.

View full thread SQL::Abtract und update