sql查询结果直接拼接

select a.*,(a.startTime+'|'+a.endTime) as states  from OA_Vote_Subject as a where 1=1 

拼接后的states为 2016-02-02 00:00:00|2016-02-29 00:00:00

 

你可能感兴趣的:(sql查询结果直接拼接)