请大家救急,SELECT INTO 加排序的问题,在线等待。。。。。 it is just a syntax, why notselect * into b表 from a表 order by 字段orselect * into b表 from (select top 100 percent * from a表 order by 字段) c? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我想起来了可以指定TOp的话就没问题 Top99999999就一切搞定了我本来想把帖子删了呢既然有人来了就送给你了不过楼上说的有理我这只可以指定TOP而且要最大呵呵 --在子查询中,如果有排序就要指定top,如果你执行过的话,错误提示很明白--top 100 percent是按百分比(100%),可以保证是所有记录select * into b表 from(select top 100 percent * from a表 order by 字段) c select * into b表 select * from a表 order by 字段 select * into b表 from a表 order by 字段不是最简单吗? 应是这样select * into b表 from a表 order by 字段 select * into b表 from a表 order by 字段或select * into b表 from(select top 100 percent * from a表 order by 字段) c注意:因为在字查询中排序,要指明 top 100 percent 查出每种商品它每一种价格的连续销售的持续天数的出现次数?! SQL函数应用问题,很苦恼!! sql 两行数据合并成一行显示 求优化算法,高难度! 有关外键约束的问题???? sql server 2000备份的数据库路径记录在mast数据库的那个表里面? select @@ERROR from sys . sysprocesses 如何查询前3个不重复的日期 如何让两个论坛的用户名和密码通用呢?? 如何在存储过程中连接2个字符串 高分求助:为什么我在SerVer查询分析器里面执行 BCP命令始终没有响应????? 求助,数据库连接不上啊!!
可以指定TOp的话就没问题 Top99999999
就一切搞定了
我本来想把帖子删了呢
既然有人来了就送给你了
不过楼上说的有理
我这只可以指定TOP而且要最大
呵呵
--top 100 percent是按百分比(100%),可以保证是所有记录select * into b表 from(select top 100 percent * from a表 order by 字段) c
不是最简单吗?
select * into b表 from a表 order by 字段
或
select * into b表 from(select top 100 percent * from a表 order by 字段) c
注意:因为在字查询中排序,要指明 top 100 percent