I have a cell that contains only the date, in the case 2018-07-11
, I need to make a select
that will bring that cell like this: 2018-07-11 23:59:59
, is it possible to do that?
I have a cell that contains only the date, in the case 2018-07-11
, I need to make a select
that will bring that cell like this: 2018-07-11 23:59:59
, is it possible to do that?
Operations with dates in postgreSQL are easy to implement, as we see in documentation
In your case just do:
SELECT data, data + time '23:59:59'
FROM datas
You can see this working in SQL Fiddle .