to_number('1.23')
to_date('2003-01-01','yyyy-mm-dd')

解决方案 »

  1.   

    SQL> select to_date('1/2/2003','dd/mm/yyyy') from dual;TO_DATE('1/2/2003','DD/MM/YYYY
    ------------------------------
    2003-2-1 00:00:00
      

  2.   

    thank.
    我定义了一个过程
    create or replace procedure addnew
    可以把一个参数直接转化为日期的,就是 把这个函数用到参数里面。
      

  3.   

    格式转换函数to_char,to_date,to_number
    可以在合法的字符,数值和日期及时间型的数据间相互转换。
    具体参数可以察看以上三个函数的参考资料。
      

  4.   

    create or replace procedure addnew(p_date date)
    as
    ...
    begin
    ..
    end addnew;
    /
    exec addnew(to_date('1/2/2003','dd/mm/yyyy'));