Skip to content

Instantly share code, notes, and snippets.

@paul
Created October 8, 2008 21:19
Show Gist options
  • Save paul/15600 to your computer and use it in GitHub Desktop.
Save paul/15600 to your computer and use it in GitHub Desktop.
configurator=# SELECT NOW();
now
-------------------------------
2008-10-08 15:17:06.234692-06
(1 row)
configurator=# SELECT created_at FROM configurations LIMIT 1;
created_at
---------------------
2008-10-07 16:38:28
(1 row)
configurator=# SELECT EXTRACT(microseconds FROM created_at) FROM configurations LIMIT 1;
date_part
-----------
28000000
(1 row)
configurator=# UPDATE configurations SET updated_at = NOW();
UPDATE 15
configurator=# SELECT updated_at FROM configurations LIMIT 1;
updated_at
----------------------------
2008-10-08 15:20:51.506686
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment