select * from(select clbm as clbma,clmc as clmca,clgg=``, jj='', sj='', flbm='' from gdyj.pubcwcl
union all
select clbma,clmca,clgg,cast(jj as char),cast(sj as char),flbm from dda)a order by clmca
select clbma,clmc,clmca,clgg, jj, sj, flbm from(select clbm as clbma,clmc as clmc,'' as clmca,clgg=NULL, jj=NULL, sj=NULL, flbm=NULL,0 as ord from table1
union all
select clbma,'',clmca,clgg, jj, sj, flbm,1 as ord from table2)a
order by ord,clmca