PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
1 sec ago
Untitled
ActionScript 3 | 4 sec ago
Lista 1 - Exercicio 20
C | 4 sec ago
hotmelanie
6 sec ago
Untitled
8 sec ago
Untitled
12 sec ago
Untitled
14 sec ago
Untitled
20 sec ago
Untitled
By: a guest on
Jun 17th, 2012
| syntax:
None
| size: 0.25 KB | hits: 23 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
How to insert current_timestamp into Postgres via python
INSERT INTO some_table
(ts_column)
VALUES
(TIMESTAMP '2011-05-16 15:36:38');
INSERT INTO some_table
(ts_column)
VALUES
(to_timestamp('16-05-2011 15:36:38', 'dd-mm-yyyy hh24:mi:ss'));
create a
new version
of this paste
RAW Paste Data
How to insert current_timestamp into Postgres via python INSERT INTO some_table (ts_column) VALUES (TIMESTAMP '2011-05-16 15:36:38'); INSERT INTO some_table (ts_column) VALUES (to_timestamp('16-05-2011 15:36:38', 'dd-mm-yyyy hh24:mi:ss'));