1.rand()返回0-1之间的数字
2.char_length 判断字符串长度
3.concat字符串连接
4.upper()转换成大写
5.left()留取左边几个值
6.select right('dfg',2);留取右边几个值
7.select right('dfg',2);去除左侧空格
8.select rtrim(" ddd ");去除右侧空格
9.select trim(' dfg d ');去除两边空格
10.select repeat('sddd',3); 将sddd重复三次
11.select repeat('sddd',3);返回3个空格
12.select curdate();2017-12-12
13.select ifnull(null,1);如果null返回第二,要不返回第一
14.select case when 1>0 then 'true' when 2<1 then 'false' end;如果就
15.select version();系统版本
16.select dencode();解密 select encode()加密
17.
18.
19.
20.
select case when char_length('qiushuzhao1')=11 then 'ok' end as 'massge';
select concat('a,','b') as ss;
select UPPER('aava');
select left('aasss',5);
select right('dfg',2);
select ltrim(' d d f ');
select rtrim(" ddd ");
select trim(' dfg d ');
select repeat('sddd',3);
select space(4);
select curdate(),curtime(),now(),current_timestamp();
select if(1>0,'true','false');
select if(char_length('ddd')=2+1,'1','2');
select ifnull(null,1);
select case when 1>0 then 'true' when 2<1 then 'false' end;
select version();
select CONNECTION_ID(),user(),system_user(),character('utf-8');
select password('邱述照');
select md5("邱述照");
select format(2.45555,2);