-
-
Save joevandyk/d14fd860f4270a5cc17d to your computer and use it in GitHub Desktop.
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
create table f ( | |
i interval | |
); | |
insert into f values ('4 days'); | |
insert into f values ('6 years'); | |
insert into f values ('30 minute'); | |
select * from f; | |
---------- | |
4 days | |
6 years | |
00:30:00 | |
(3 rows) | |
select now(), now() + i from f; | |
-------------------------------+------------------------------- | |
2013-05-08 15:34:30.052171-07 | 2013-05-12 15:34:30.052171-07 | |
2013-05-08 15:34:30.052171-07 | 2019-05-08 15:34:30.052171-07 | |
2013-05-08 15:34:30.052171-07 | 2013-05-08 16:04:30.052171-07 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment