select * from
(select opendate from a
unoin
select opendate from b
unoin
select opendate from c
unoin
select opendate from c
unoin
select opendate from e)temp
order by opendate
(select opendate from a
unoin
select opendate from b
unoin
select opendate from c
unoin
select opendate from c
unoin
select opendate from e)temp
order by opendate
解决方案 »
- 请教:相同结构的两个库之间复制数据
- 触发器的问题·
- 关于update多条数据,只触发一次触发器的问题
- 怎么向text字段插入我得html模板页啊。
- 求助全文检索 服务器: 消息 7609,级别 17,状态 2,过程 sp_fulltext_database,行 46
- 关于两个数据表数据查询问题!
- 求助:哪里有sql sever2000企业版下载啊?(4in1也行)
- 请教一下,我这个sql的游标显示没有定义变量,请问如何修改?
- 在线等待,紧急求救:SQL server 7中数据处理停顿问题
- 导出表不小心导到了master,如何从备份文件中取出表数据
- 定位记录的问题,如何使用fetch?
- 数据更新,列可不可以"选"
insert #t select * from b
insert #t select * from c
insert #t select * from d
insert #t select * from e
select * from #t as A where id = (select min(id) from #t where OpenDate = A.OpenDate) order by A.OpenDate
在关键字 'select' 附近有语法错误。
服务器: 消息 170,级别 15,状态 1,行 11
第 11 行: ')' 附近有语法错误。
(select opendate from a
unoin
select opendate from b
unoin
select opendate from c
unoin
select opendate from d
unoin
select opendate from e) temp
order by opendate
FROM a
UNION
SELECT DISTINCT opendata
FROM b
............
ORDER BY opendata
在关键字 'select' 附近有语法错误。
服务器: 消息 170,级别 15,状态 1,行 11
第 11 行: ')' 附近有语法错误。
(select opendate from a
union
select opendate from b
union
select opendate from c
union
select opendate from d
union
select opendate from e) temporder by opendate--unoin>union