select cs_logo,cs_id from CShow where cs_if=1
union all
select cm_logo,cm_id from CMeet where cm_if=1

解决方案 »

  1.   

    select cs_logo ,cs_id ,'CSHOW' as whichTable
    from CShow where cs_if =1
    union all
    select cm_logo,cm_id ,'CMeet' as whichTable
    from CMeet where cm_if =1
      

  2.   

    select cs_logo as col1,cs_id as col2 from cshow where cs_if=1
    union all
    select cm_logo as col1,cm_id as col2 from cmeet where cm_if=1
      

  3.   

    select cs_logo,cs_id from CShow where cs_if=1
    union
    select cm_logo,cm_id from CMeet where cm_if=1