unix time -> timestamp

Поиск
Список
Период
Сортировка
От boyd
Тема unix time -> timestamp
Дата
Msg-id tbmoore-54811A.18291606012004@news.ispnews.com
обсуждение исходный текст
Список pgsql-sql
I'm pretty sure in 7.0 postgres, (but I may be wrong) you could insert 
directly from a perl script something like this:  $time = time; # this gives epoch seconds  $sql = "insert into mytable
values(...,timestamp($time), ...) ";
 

And then the $sql string would run with the DBI call, etc.  

When I tried the same script on 7.2, it would not take it.  I think I 
once found another way to do it in 7.2.  Of course, I can create a 
formatted string in perl that will be accepted by the insert, but it 
seems inefficient to have to do it through strings. 

Boyd tbmooreATbealenetDOTcom



В списке pgsql-sql по дате отправления:

Предыдущее
От: brendanl@iname.com (Brendan LeFebvre)
Дата:
Сообщение: Different query results in psql and Perl DBI with Postgres 7.2.1
Следующее
От: Evan Klinger
Дата:
Сообщение: PostgreSQL Array Syntax