這裏是我創建表查詢:什麼是Oracle中的默認日期格式?
create table emp_company (Ename varchar2(20),Cname varchar2(20),Salary number,Jdate date);
insert into emp_company values (&ename,&cname,&salary,&jdate);
Enter value for ename: 'ANIL'
Enter value for cname: 'ACC'
Enter value for salary: 1500.00
Enter value for jdate: '01-05-89'
old 1: insert into emp_company values (&ename,&cname,&salary,&jdate
new 1: insert into emp_company values ('ANIL','ACC',1500.00,'01-05-
insert into emp_company values ('ANIL','ACC',1500.00,'01-05-89')
*
ERROR at line 1:
ORA-01843: not a valid month
什麼我錯在這裏做什麼?
我認爲這是Oracle嗎?如果是這種情況,則不存在默認日期格式。 – Ben
請參閱[文檔](http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements003.htm#BABGIGCJ) – Kermit
默認日期格式的_representation_,僅適用於您的會話...並且它受[NLS_DATE_FORMAT](http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams122.htm)管轄.. –