一句很简单的SQL语句,让大家见笑了。 select count(*) from (select id from 表1 where condition union select id from 表2 where condition union select id from 表3 where condition)t 加上别名 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(a.*) from (select id from 表1 where condition union select id from 表2 where condition union select id from 表3 where condition) a 求sql 这样的问题如何写SQL语句(表的内连接查询) 无条件或有条件合并两个列 如何使某个字段输入的非六位字符自动变为null 高手请进入!SQL2005全文索引后排序并分页的难题(可以另开帖给分!) 2000家连锁超市如何构架系统? 如何得到数据库逻辑文件名及存存储过程执行时间 如何从日志文件中恢复数据库? 请教各位大侠,如何得到字段的默认值 为什么打包时还是连接不上SQL SERVER2000服务器 如何写此触发器?急~ 如何写递归统计的语句
count(a.*)
from
(select id from 表1 where condition
union
select id from 表2 where condition
union
select id from 表3 where condition) a