我有以下查询我收到错误的地方
ORA-01481: invalid number format model
The user is attempting to either convert a number to a string via TO_CHAR or a string
to a number via TO_NUMBER and has supplied an invalid number format model parameter.
我在存储过程中使用这个查询。day_id 列是数字数据类型,该列中存储的值为YYYYMMDD
. month_id 列也是数字数据类型,我想将此列中的值存储为YYYYMM
INSERT INTO TEST_CHECK(MONTH_ID) VALUES
(to_char(REC.day_id, 'YYYYMM'));