The following query converts ‘3’ to ‘3-00’. Source is INTERVAL YEAR. The insertion of zeros completes the conversion.
SELECT CAST(INTERVAL '3' YEAR AS INTERVAL YEAR TO MONTH);
The following query converts ‘3’ to ‘3-00’. Source is INTERVAL YEAR. The insertion of zeros completes the conversion.
SELECT CAST(INTERVAL '3' YEAR AS INTERVAL YEAR TO MONTH);