56,687
社区成员
发帖
与我相关
我的任务
分享
MySQL中concat函数
使用方法:
CONCAT(str1,str2,…)
返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。
select * from mytab where concat(field1,field2) like '%keyword%';
select * from mytab where concat(field1,field2) like '%keyword%'