Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- ์ ์์๋ช ๊ธฐ๋ฅ๊ตฌํ
- Oracle
- poi monitorjbl
- fullcalendar js
- ์ ์์๋ช ๊ฐ๋ฐ
- outofmemoryerror ๋ฐฉ์ง
- monitorjbl ์์
- xcode12.5.1
- swift ๋ฉ๋ชจ์ฅ ๋ง๋ค๊ธฐ
- xlsx-streamer
- MSsql
- jxls
- ios app ๊ฐ๋ฐ
- ๋์ฉ๋์์ ์ ๋ก๋
- js ์ ์์๋ช
- xcode swift memo
- jxls ์์
- ๋ฌ๋ ฅ๊ธฐ๋ฅ๊ฐ๋ฐ
- js๋ฌ๋ ฅ
- mysql
- PostgreSQL
- xssfworkbook
- poi ๋์ฉ๋
- Swift
- monitorjbl
- xssreader
- swift ๊ณ์ฐ๊ธฐ
- opcpackage
- spring annotation
- Xcode
Archives
- Today
- Total
web developer๐ฉ๐ป๐ป
[Oracle] ORA-01861: ๋ฆฌํฐ๋ด์ด ํ์ ๋ฌธ์์ด๊ณผ ์ผ์นํ์ง ์์ ๋ณธ๋ฌธ
DB
[Oracle] ORA-01861: ๋ฆฌํฐ๋ด์ด ํ์ ๋ฌธ์์ด๊ณผ ์ผ์นํ์ง ์์
natrue 2021. 5. 25. 23:13728x90
ORA-01861: ๋ฆฌํฐ๋ด์ด ํ์ ๋ฌธ์์ด๊ณผ ์ผ์นํ์ง ์์
01861. 00000 - "literal does not match format string"
*Cause: Literals in the input must be the same length as literals in
the format string (with the exception of leading whitespace). If the
"FX" modifier has been toggled on, the literal must match exactly,
with no extra whitespace.
*Action: Correct the format string to match the literal.
์์ธ
DATE ํ์ ์ Stringํ์ ๋ฌธ์์ด์ ๋ฃ์ผ๋ ค ํ๊ฑฐ๋ DATEํ๊ณผ Stringํ์ ๋น๊ตํ๋ ค ํ ๋ ๋ฐ์ํ๋ ์๋ฌ.
ํด๊ฒฐ ๋ฐฉ๋ฒ
1. date ํ์ ์ String์ผ๋ก ๋ณ๊ฒฝํ๋ค.
TO_CHAR : ๋ ์ง ๋๋ ์ซ์๋ฅผ ๋ฌธ์๋ก ๋ณ๊ฒฝ
TO_CHAR(SYSDATE, 'YYYYMMDD')
2. String ํ์ ์ date ํ์ ์ผ๋ก ๋ณ๊ฒฝํ๋ค.
TO_DATE : ๋ฌธ์ํ ๋ฐ์ดํฐ๋ฅผ ๋ ์ง ๋ฐ์ดํฐํ์ผ๋ก ๋ณ๊ฒฝ
TO_DATE('20210526', 'YYYYMMDD')
'DB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Oracle] ORA-01481: ์ซ์ ํ์ ๋ชจ๋ธ์ด ๋ถ์ ํฉํฉ๋๋ค (2) | 2021.06.02 |
---|---|
[Oracle] DECODE ์ CASE ๋น๊ต (0) | 2021.05.27 |
[Oracle] PIVOT ์ฌ์ฉํ๊ธฐ (0) | 2021.05.25 |
[Oracle] cmd sqlplus ์ ์ ์๋ฌ (1) | 2021.05.21 |
[Oracle] ์ค๋ผํด ๋ฒ์ ๋ฐ ์๋์ ์ ๋ณด ํ์ธ (0) | 2021.05.21 |