DB
[Oracle] ORA-01481: ์ซ์ ํ์ ๋ชจ๋ธ์ด ๋ถ์ ํฉํฉ๋๋ค
natrue
2021. 6. 2. 14:50
728x90
ORA-01481: ์ซ์ ํ์ ๋ชจ๋ธ์ด ๋ถ์ ํฉํฉ๋๋ค
01481. 00000 - "invalid number format model"
*Cause: 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.
*Action: Consult your manual.
์์ธ : CHAR ํ์์ด ์๋๊ณ NUMBER ํ์์ผ๋ก ์ธ์๋์ด์
ํด๊ฒฐ : TO_CHAR ํจ์๋ก CHAR ํ์์ผ๋ก ๋ณ๊ฒฝ
TO_CHAR(TO_DATE(re_date, 'yyyymmdd'),'yyyy') AS re_date