MySQL 函数

1
2
3
4
5
6
MySQL> select date_format(now(),'%Y-%m-%d');
MySQL> select time_format(now(),'%H-%i-%S');

-- 连接字符串, CONCAT
select CONCAT('My', 'S', 'QL');