一.查询出行转列的SQL
select
wmsys.wm_concat(t.ele_id )
from md_elevator t
where t.device_id=451;
查询行结果(select t.ele_id from md_elevator t where t.device_id=451;)
行转列后查询结果(select wmsys.wm_concat(t.ele_id ) from md_elevator t where t.device_id=451;)
二.判断查询语句