mysql的系统函数分类(基本的五大类)
字符串系统函数
1、now()函数 获取系统当前时间戳。
2、concat() mysql的字符拼接函数
select concat('hello','world');
运行结果 hello world
select concat('name','_','age') from student
运行结果 name_age
3、trim() 去除字符串的空白字符与PHP一样。
4、Upper() 返回的字母都是大写
select upper('Mysql');
结果是 MYSQL
5、 lower() 返回的字母都是小写。
select lower('Mysql');
结果是 mysql
6、 char_length() 返回字符的长度
select char_length('我爱中国');
结果是 4