MySQL数据库
1.字符函数、2.数值运算符与函数、3.比较运算符与函数、4日期时间函数、5.信息函数、6.聚合函数、7加密函数
补充:
concat
select concat('imooc', ' mysql');
select concat(first_name, last_name) as full_name from test;
concat_ws
select concat_ws('|', 'A', 'B');
format
select format(12675.12, 2); -> 12,675.12
left
select left('mysql', 2); -> my
replace
select replace('??my??sql??', '?', '');
substring
mysql 字符窜中下标从1开始
like
select ‘MySQL’ like ‘M%’; -> 1
名字中有‘o’
select * from test where first_name like ‘%o%’;
名字中有‘%’
select * from test where first_name like ‘%%%’; (X)
select * from test where first_name like ‘%1%%’ escape ‘1’;
% 代表任意个字符,_代表任意一个字符。