简单的问题 帮帮忙啊 急~ select * from ( select * from 个人用户的表 union all select * from 企业用户的表 ) aaorder by aa.时间字段 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 个人用户的表 union allselect * from 企业用户的表 order by 时间 select * from table1union select * from table2 select * from (select * from 个人用户的表union all select * from 企业用户的表)aorder by 时间 如果不要重復記錄 ﹐上面應該用 union ,而不是union all select * from 个人用户的表 union allselect * from 企业用户的表 group by *//你的字段order by 时间 select * from ( select * from 个人用户的表 union all select * from 企业用户的表 )as agroup by a.*order by a.时间字段 回复人: lsxaa(小李铅笔刀) ( ) 信誉:100 2004-10-19 14:54:00 得分: 0 楼上的,有一部分是抄我的 呵呵 -------------------------------------------说明你的答案是对的了,呵呵,支持你的答案,我也抄一下select * from ( select * from 个人用户的表 union all '不要重复纪录改为union select * from 企业用户的表 ) aaorder by aa.时间字段 列如果是TEXT 类型可以么??好像有错误 SQL SERVER 2000级联删除问题 请教一个关于sql统计的问题(续前题) 再问一个sql 语句??? 如何查找多个字段相同的重复记录,并统计重复次数 我有按id重复的记录,我想选取里面时间最迟的记录 新人求教 大家帮忙 判段某一列值是否为空时出现异常。 格式话显示纪录 怎样改变数据库所有者的问题 在线等 请看内容,比较急!等待…… 请问如何把EXECUTE sp_executesql的结果集保存到临时表或者用游标提取?谢谢。 从b表数据更新到a表问题,请指教,先谢了
union all
select * from 企业用户的表
order by 时间
union
select * from table2
(select * from 个人用户的表
union all select * from 企业用户的表)a
order by 时间
union all
select * from 企业用户的表
group by *//你的字段
order by 时间
select * from 个人用户的表
union all
select * from 企业用户的表 )as a
group by a.*
order by a.时间字段
楼上的,有一部分是抄我的 呵呵
-------------------------------------------
说明你的答案是对的了,呵呵,支持你的答案,我也抄一下select * from (
select * from 个人用户的表
union all '不要重复纪录改为union
select * from 企业用户的表 ) aa
order by aa.时间字段
好像有错误