1、SQL> insert into plsql101_product values
2 ('square zinculator',45,1,to_date('12月 31,2002, 11:30 p.m.','month dd,yyyy,hh:mi pm'));
改为
SQL> insert into plsql101_product values
2 ('square zinculator',45,1,to_date('12月 31,2002, 11:30 p.m.','month dd,yyyy,hh:mi pm'));
2、分号是执行
3、show error
2 ('square zinculator',45,1,to_date('12月 31,2002, 11:30 p.m.','month dd,yyyy,hh:mi pm'));
改为
SQL> insert into plsql101_product values
2 ('square zinculator',45,1,to_date('12月 31,2002, 11:30 p.m.','month dd,yyyy,hh:mi pm'));
2、分号是执行
3、show error
SQL> select to_date('12月 31,2002, 11:30 下午','month dd,yyyy,hh:mi pm') from dual;TO_DATE('1
----------
31-12月-02
进edit 环境编辑
to_date('12月 31,2002, 11:30 p.m.','month dd,yyyy,hh:mi pm')这块
应为to_date('12月 31,2002, 11:30 下午','month dd,yyyy,hh:mi pm'));
如 bzszp(SongZip) 所说,我未测试便放上去了。