好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

MySQL与Oracle常用函数

Oracle to_char(sysdate, ‘ yyyy-MM-dd HH24:mm:ss ‘ ) // MySQL select date_format(now(), ‘ %Y-%m-%d %H:%i:%s ‘ ) 数字转字符串
 //  Oracle
to_char(  1  )

  //  MySQL
  select   cast ( number   as   char )   /   select   cast ( 123   as   char  )
  select  concat( 123 , ‘‘ )
字符串转数字
 //  Oracle
to_number(sort)

  //  MySQL
  cast (sort  as  signed  integer )
2个字符串返回一个非空的 (NULL)
 //  Oracle
  select   NVL(expr1,expr2)

  //  MySQL
  select  ifnull(expr1,expr2)

 

MySQL与Oracle常用函数

标签:form   concat   har   sysdate   weight   signed   col   orm   char   

查看更多关于MySQL与Oracle常用函数的详细内容...

  阅读:21次