`
reallyafei
  • 浏览: 97260 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

mysql函数

阅读更多

1、mysql中length函数和char_length的区别:

 length:   是计算字段的长度一个汉字是算三个字符,一个数字或字母算一个字符

 char_length:不管汉字还是数字或者是字母都算是一个字符

 

2、总结mysql取得系统时间的功能

select now() as Systime;

select current_date as Systime;

select sysdate() as Systime;

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics