select top 5 Gtitle from
(select * from a
union all
select * from b) c
order by c.Gdate desc
(select * from a
union all
select * from b) c
order by c.Gdate desc
解决方案 »
- 用户sa存在哪种表中呀?即哪个系统表是用户表呢?存放用户名和密码?
- 子查询解决distinct多列的疑问
- 如何创建一个和已有数据库结构完全一样,但名称不同的数据库
- filehose下不能启动事务?
- 用相同值的记录填充为null的记录
- 获得存储过程参数信息,程序太慢了,要20多秒
- 怎样得到上个月的最后一天!
- 水晶报表问题之二
- sqlserver2000的系统、环境选项的文件在哪里
- 大家帮帮忙
- 2000Server机器更改了登陆密码后,SQLSERVER“服务管理器”无法启动,提示:由于登陆失败无法启动服务!密码改回来就好了!我怎么修改服
- 这个问题好急啊,大侠帮看看,为什么值插入一条,并且不完全?????
(
select Gtitle from A
union all
select Gtitle from B
)a
order by a.Gtitle desc
包含UNION运算符的表达式所有查询都必须在选择列表中包含相同数目的表达式
(select Gtitle, Gdate from a
union all
select Gtitle, Gdate from b) c
order by c.Gdate desc