mysql: GROUP_CONCAT函数
SELECT GROUP_CONCAT(id) id FROM `task_definition` LIMIT 0,100
sql server :stuff
select stuff((select ','+name+'' from table1 for xml path('')),1,1,'')