select top 5 * from
(select top 10 id,* from tA order by id asc) page_table1 where id not in
(select id from (select top 5 * from tA order by id asc) page_table2)
同一个数据库,同样是这个语句得到的结果在本机是按id升序排列,而在客户那边却是乱的,并没有按id升序排序,请教这是为什么?数据库中有什么设置么?
说明:id为varchar类型,内容为不重复长度一致的数字字符串
(select top 10 id,* from tA order by id asc) page_table1 where id not in
(select id from (select top 5 * from tA order by id asc) page_table2)
同一个数据库,同样是这个语句得到的结果在本机是按id升序排列,而在客户那边却是乱的,并没有按id升序排序,请教这是为什么?数据库中有什么设置么?
说明:id为varchar类型,内容为不重复长度一致的数字字符串
解决方案 »
- nocount off @@rowcount
- 各位大大,我这有一个基础的insert into的问题
- sp_addlinkedserver应该怎么用?
- 关于存储过程中的ntext
- SQL语句求解
- sqlserver
- 请教从哪里可以下载sql server2000?
- 我有3个表,每个表都只有一个id字段,每个表都有一定量的id值,如何实现对这三个表的id做AND,OR,NOT操作??
- 请有做过第三方物流公司信息系统方案设计,具体实施工作的大哥们畅谈高见,感触等,最好有具体的资料email 给我:[email protected],谢谢先!
- 请帮忙改改这条SQL语句(SQL SERVER7)
- sql2005 如何防止对一行记录多次读取,修改
- 修改SA密码报错,错误126(找不到指定的模块)
select top 5 * from
(select top 10 id,* from tA order by id asc) page_table1 where id not in
(select id from (select top 5 * from tA order by id asc) page_table2)
order by id
(select top 10 * from tA order by id asc) page_table1
where id not in
(select top 5 id from tA order by id asc)