现在有一条sql语句
select ID as id,Name as name,IP as ip,lat,lon,0 as type from trk.devs_v2 where type=0 union all select id,signalName as name,ip ,lat,lng as lon,99 as type from yc_signal.signal union all
想使用正则让最后一个union all去掉 而不是去掉所有的union all
想要的结果为
select ID as id,Name as name,IP as ip,lat,lon,0 as type from trk.devs_v2 where type=0 union all select id,signalName as name,ip,lat,lng as lon,99 as type from yc_signal.signal
有正则大神帮帮忙呗! 万分感谢
慕码人2483693
幕布斯6054654
随时随地看视频慕课网APP
相关分类