这个SQL语句怎么不能执行?关于union all select count(*)from(select id from tbunion allselect id from tb)这是怎么回事? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*)from(select id from tbunion allselect id from tb)T 这样就可以了 括号后面字母随便你取 --括号里面的东东是一个子查询,是必须要加别名的。select count(*) from (...) as T --楼主少了一个别名select count(*)from(select id from tbunion allselect id from tb) a select count(*)from(select id from tbunion allselect id from tb)a--加个别名就可以 from后面一定要接个表名,你括号内其实是个数据集,你要给这个数据集起个名字才能查询select count(*)from(select id from tbunion allselect id from tb) a 取字段的一个小问题 本人要设计个成绩管理系统,想了很久只想到下面这些东西 CSON_CSON大侠,请您再次帮忙,您给的删除触发器原本很好,结果我越改越乱 在一个字段里插入系统时间 sqlserver2005 生成XML的字串时有长度限制,如何解决!! 有人能帮我解决这个问题吗? 请问如何编写实现如下功能的查询语句(只要一句) 请问有什么方法可以令VFP的界面变得与漂亮点,别老是win98的标准界面? 在sql中的,数据库的设计!到底如何提高效率?? 用什么工具可以打开Paradox数据库?不想用Delphi. 数字转成成日期格式 数字转成成日期格式
from
(
select id from tb
union all
select id from tb
)T 这样就可以了 括号后面字母随便你取
--楼主少了一个别名
select count(*)
from
(
select id from tb
union all
select id from tb
) a
select count(*)
from
(
select id from tb
union all
select id from tb
)a
--加个别名就可以
from
(
select id from tb
union all
select id from tb
) a