日期处理

来源:互联网 发布:开淘宝店怎么找代理商 编辑:程序博客网 时间:2024/05/23 13:16

日期处理

     查询:select to_char(字段名,'yyyy-mm-dd hh24:mi:ss') as time  from 表名

               select to_date(sysdate,'yyyy-mm-dd hh:24:mi:ss') as time from dual;  //系统时间

               select to_date('2009-9-8 16:08:00','yyyy-mm-dd hh24:mi:ss') from dual