SQL CONCAT函数:用于将两个字符串连接起来,形成一个单一的字符串。
举例:
查询当前系统时间
正常查询:select current_date ; 添加前缀:select CONCAT(“系统时间:”,current_date); 添加后缀:select CONCAT(current_date,”,aaa”);
select current_date ;
select CONCAT(“系统时间:”,current_date);
select CONCAT(current_date,”,aaa”);
MySql为查询结果添加前、后缀
原文:https://www.cnblogs.com/meetuj/p/11114200.html