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

解决方案 »

  1.   

    你可以用pl/sql developer及toad 对存储过程进行编辑及编译,这样错误立刻反映出来了。
      

  2.   

    1.用汉语就行了
    SQL> select to_date('12月 31,2002, 11:30 下午','month dd,yyyy,hh:mi  pm') from dual;TO_DATE('1
    ----------
    31-12月-02
      

  3.   

    分号是执行
    进edit 环境编辑
      

  4.   

    Sorry
    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) 所说,我未测试便放上去了。