테이블 :
create table Players (PlayerNo number (4) not null, Name varchar2(15), date_of_birth date,leagno varchar(4));
잘못 삽입 :
insert into PLAYERS (PlayerNo,Name,date_of_birth,leagno) VALUES (1,'Philipp K','Jan-10-1999','1')
무슨 잘못?
오류 코드
Fehler beim Start in Zeile 1 in Befehl:
insert into PLAYERS (PlayerNo,Name,date_of_birth,leagno) VALUES (1,'Philipp K','Jan-10-1999','1')
Fehlerbericht:
SQL-Fehler: ORA-01858: Ein nicht-numerisches Zeichen wurde gefunden, während ein numerisches Zeichen erwartet wurde
01858. 00000 - "a non-numeric character was found where a numeric was expected"
*Cause: The input data to be converted using a date format model was
incorrect. The input data did not contain a number where a number was
required by the format model.
*Action: Fix the input data or the date format model to make sure the
elements match in number and type. Then retry the operation.
날짜 형식은 클라이언트에 의해 변경 될 수 있습니다. 실제로 "기본값"은 없습니다. 다른 답변과 마찬가지로 TO_DATE를 사용해야합니다. –
'TO_DATE'를 명시 적으로 호출하지 않고도 설정할 수 있다는 사실은 명시 적으로 예, 기본 형식이 있음을 의미합니다. 그러나 예, TO_DATE를 호출하는 것이 훨씬 강력합니다. – Donnie