Thread Postgres - timestamp - date (5 answers)
Opened by Kuerbis at 2014-03-28 11:02

payx
 2014-03-28 11:10
#174460 #174460
User since
2006-05-04
564 Artikel
BenutzerIn

user image
Hallo Kuerbis,

2014-03-28T10:02:24 Kuerbis
Code (perl): (dl )
$sth = $dbh->prepare( "SELECT TO_TIMESTAMP( extract( epoch epoch_milli ))::date FROM $table" );

Lt. PostgreSQL-Doku muss es heißen:
Code: (dl )
EXTRACT(field FROM source)
Bei Dir fehlt das FROM, oder?

HTH
Grüße
payx

View full thread Postgres - timestamp - date