Postgres Convertir la fecha a la cadena
SELECT
TO_CHAR(SYSDATE, 'YYYY-MM-DD')
FROM
dual;
Wojak's distant cousin
SELECT
TO_CHAR(SYSDATE, 'YYYY-MM-DD')
FROM
dual;
SELECT CURRENT_TIMESTAMP 'date',
CAST(CURRENT_TIMESTAMP AS VARCHAR) 'date as a string';
Code language: SQL (Structured Query Language) (sql)