Skip to content

CONVERT()函数

MySQL数据库中使用convert函数进行数据类型转换,在虚谷数据库中采用cast函数。cast函数的使用示例如下:

  • MySQL
    SQL> select convert("2017-08-29", date) from dual;
  • Xugu
    SQL> select cast('2017-08-29' as date) from dual;