摘要: --方法1:select*fromopenrowset('SQLOLEDB','server=192.168.0.67;uid=sa;pwd=password','SELECT*FROMBCM2.dbo.tbAppl')--方法2:select*fromopenrowset('SQLOLEDB','192.168.0.67';'sa';'password','SELECT*FROMBCM2.dbo... 阅读全文
posted @ 2010-04-10 16:09 liuyan 阅读(150) 评论(0) 推荐(0) 编辑
摘要: select top 5 * from (select top 15 * from tableNameorder by id asc) tableName order by id desc 或者类似用select top 方式的分页储存过程 SQL Server2005 中row_number函数的诞生,在处理分页上简化了很多语句 row_number函数的用途是非常广泛,这个函数的功能是为查询出... 阅读全文
posted @ 2010-04-10 15:48 liuyan 阅读(191) 评论(0) 推荐(0) 编辑