Created
March 18, 2018 14:19
-
-
Save barsbek/3e6264dbfb5e9c489e2ae05185f8956f to your computer and use it in GitHub Desktop.
postgreslq: truncate timestamp to precision
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select date_trunc('month', '2011-12-12'); -- '2011-12-01 00:00:00.000000' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment