SELECT sum(sl) as 数量 from
(select sl from a where a.id="1" union all select sl from b where b.id='1') t
(select sl from a where a.id="1" union all select sl from b where b.id='1') t
解决方案 »
- cstring format 哪里有错误?
- Sql 2005 能不能独立设置每帐号或连接的 CPU 内存占用率啊?
- 哪位好人来回答一下这个问题啊 没分了。
- 夜深了,请教各位一个问题
- sql批处理语句
- 请问这样的数据统计怎样处理?(急!急!)
- 我电脑win7系统,刚装sqlserver2012没什么问题。 可是不久后我登sql,连接不上,才发现sql的几个服务没开(选的自动那些里面),然后我重启多次
- 存储过程中可以自定义变量吗>>>
- 请教:怎样用程序截取客户发往服务器的SQL语句(例如:SQL 事件探查器)
- case when..then..else..end问题
- SQL里的case问题
- 就SQL2005数据库同步问题 再问~~~~~~~~求一解决方案
(select sl from a where a.id="1" union all select sl from b where b.id="1") tb--加一别名
(select sl from a where a.id='1' union all select sl from b where b.id='1') t
(select sl from a where a.id="1" union all select sl from b where b.id="1") as c