I have a postgres date and posgres time column. Is there any postgres function to get postgres timestamp from these columns. This timestamp value is used to compare with the Java sql timestamp object.
1 Answer
You can just sum the two columns using + operator. When you sum a date with a time type, you'll get a timestamp as the answer.
Look at the first table's third line. https://www.postgresql.org/docs/current/functions-datetime.html
||).. double pipes does not work on date and time without casting but CONCAT does something like this sqlfiddle.com/#!17/340e0/123 should help you outCREATE TABLEstatement for the database table.+operator. A date value plus a time value will give you a timestamp value. Isn't that your purpose?