如何从两个表中进行查询,得到的结果赋给一个结果集? select cs_logo,cs_id from CShow where cs_if=1union allselect cm_logo,cm_id from CMeet where cm_if=1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select cs_logo ,cs_id ,'CSHOW' as whichTablefrom CShow where cs_if =1union allselect cm_logo,cm_id ,'CMeet' as whichTablefrom CMeet where cm_if =1 select cs_logo as col1,cs_id as col2 from cshow where cs_if=1union allselect cm_logo as col1,cm_id as col2 from cmeet where cm_if=1 select cs_logo,cs_id from CShow where cs_if=1unionselect cm_logo,cm_id from CMeet where cm_if=1 求高手指点SQL语句,不用存储过程,能实现吗? 跪求统计存储过程,在线等待 一个查询问题,在线等 急急急!!! 请教一个问题 行列转换问题,分不成问题 如何复制多条数据 还可以插入新值 高手来找错,高分!! 如何将表中记录按一条件分组后,取得每个分组中的倒数第二条记录? oracle中关于创建数据库的问题 关于不同用户操作同一表数据问题 有谁知道 cycle 这种数据库吗?是不是 sql 数据表有个DateTime字段,如何用SQL语句查询前n天,或者前n月、年的数据?
from CShow where cs_if =1
union all
select cm_logo,cm_id ,'CMeet' as whichTable
from CMeet where cm_if =1
union all
select cm_logo as col1,cm_id as col2 from cmeet where cm_if=1
union
select cm_logo,cm_id from CMeet where cm_if=1