我用select '部门:'+dept from person;       *
ERROR 位于第 1 行:
ORA-01722: 无效数字
我插入日期的字段用
insert into person(idate) values('2010-05-07')
提示:ERROR 位于第 1 行:
ORA-01861: 文字与格式字符串不匹配

解决方案 »

  1.   

    第二个格式不对啊  
    insert into person(idate) values(to_date('2010-05-07','yyyy-mm-dd'))
      

  2.   

    第一个sql的意思是不是  select dept as 部门 from person   
      

  3.   

    select '部门:'+dept from person; --> select '部门:' || dept from person;
      

  4.   

    select '部门:'+dept from person;
    '部门:' 这个不是数字,怎么能用+
    连接用下面的方法
    select '部门:'||dept from person;
      

  5.   

    insert into person(per_no,idate) values('llppp',to_date('2010-05-07 10:08','yyyy-mm-dd hh:MM'))插入日期时间说格式不对,为何?
      

  6.   

    insert into person(idate) values(to_date('2010-05-07','yyyy-mm-dd'))和select '部门:'||dept from person;都对了,非常感谢!那日期带时间如何做?
      

  7.   

    insert into person(per_no,idate) values('llppp',to_date('2010-05-07 10:08','yyyy-mm-dd hh:MI'))
      

  8.   

    select '部门:'||dept from person; 
    insert into person(idate) values(date'2010-05-07')insert into person(idate) values(date'2010-05-07 12:00:00')
    insert into person(idate) values(to_date('2010-05-07','yyyy-mm-dd hh24:mi:ss'))
      

  9.   

    insert into person(idate) values(to_date('2010-05-07 12:00:00','yyyy-mm-dd hh24:mi:ss'))