Use Case & Examples
1. Timestamp to readable format
SELECT
created_timestamp,
TO_CHAR(
(TIMESTAMP '1970-01-01 00:00:00 UTC' + NUMTODSINTERVAL(created_timestamp, 'SECOND')),
'YYYY-MM-DD HH24:MI:SS'
) AS created_readable
FROM your_table;SELECT
created_timestamp,
TO_CHAR(
TIMESTAMP '1970-01-01 00:00:00 UTC' +
NUMTODSINTERVAL(created_timestamp / 1000, 'SECOND'),
'YYYY-MM-DD HH24:MI:SS'
) AS created_readable
FROM your_table;2. Search records where ext_id has exactly 14 digits
ext_id has exactly 14 digits3. Ensure ext_id contains only digits 0–9
ext_id contains only digits 0–94. Create a table with different column types
CLOB
5. Get current timestamp
Last updated