MySQL内置函数

 

 

  1. now() sysdate()均为获取当前时间, now()取执行sql时的时间,sysdate()取执行sysdate()函数时的时间

     

     

  2. cast(column as type) 类型转换,convert(column,type)
    type类型
    char[n] 
    date 日期
    datetime 日期时间
    time 时间
    decimal 
    float
    double
    signed 
    unsigned
    binary

     

     

     

     

     

     

     

     

posted @ 2020-12-23 16:34  ascertain  阅读(101)  评论(0)    收藏  举报