PostgreSQL – Casting integer to interval

Problem: So you have an integer value or field in a table and it represents a period of time, say minutes for example, and you want to interpret and use that value as an interval for the purposes of datetime manipulation; how do you do it? Solution: All testing was carried out on PG 9.3.5. …

Continue reading PostgreSQL – Casting integer to interval

Advertisements