select concat('大','小') as size from 表post
查询出结果为:大小blog
select concat('大',NULL) as size from 表class
查询出结果为:nullselect
concat中又一个参数为NULL,查出来的就为NULL查询
select concat_ws('_','大','小','中') as size from 表di
查询出结果为:大_小_中co
select concat_ws('_','大','小',NULL) as size from 表block
查询出结果为:大_小分割
concat_ws('_','大','小',NULL) 组合字段,第一个分割标识,后面字段参数