I want to get last timestmap from a table with the column updated
in PostgreSQL.
And I want a function to do that. So I can pass the table name as parameter and the function returns the latest timestamp in column updated
.
Query used:
select max(updated) from mytable;