如何insert 一个日期。
问题如下:
建立一个临时表
SQL> create table test_1
2 ( a int,
3 b date);
插入一个date变量得值
SQL> insert into test_1
2 values(1,'&asdf&');
Enter value for asdf: 2002-01-01
old 2: values(1,'&asdf&')
new 2: values(1,'2002-01-01&')
values(1,'2002-01-01&')
*
ERROR at line 2:
ORA-01861: literal does not match format string
我试过用to_char,to_date转换,都没有成功。
请大家帮我看看