---
title: "mysql函数"
author: "reallyafei"
date: "2010-09-03T16:24:03Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2010-09-03T16:24:03Z"
id: 754661
url: "https://reallyafei.iteye.com/blog/754661"
---

1、mysql中length函数和char\_length的区别:

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

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

 

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

select now() as Systime;

select current\_date as Systime;

select sysdate() as Systime;