工做中遇到,须要把sql 查询的按照指定的顺序显示sql
select plantname,cc_type,all_qty from VIEW_TEMP_DAY_CVT_CAP a where a.docdate='2019-06-30' and cc_type='成型' and in_ex like '%合计%' ORDER BY CHARINDEX(plantname, + '双源一厂,双源二厂,自动化车间,防水车间,双源五厂,射出车间,双源八厂')