SQL查找某一條記錄的方法
更新時間:2007年04月29日 00:00:00 作者:
SQL查找第n條記錄的方法:
select top 1 * from table where id not in (select top n-1 id from table) temptable0
SQL查找第n條開始的m條記錄的方法:
select top m * from table where id not in (select top n-1 id from table) temptable0)
(注:表中必須有一個唯一值字段才可適用此方法。)
select top 1 * from table where id not in (select top n-1 id from table) temptable0
SQL查找第n條開始的m條記錄的方法:
select top m * from table where id not in (select top n-1 id from table) temptable0)
(注:表中必須有一個唯一值字段才可適用此方法。)
相關(guān)文章
win7系統(tǒng)安裝SQLServer2000的詳細步驟(圖文)
這篇文章主要介紹了win7系統(tǒng)安裝SQLServer2000的詳細步驟,里面有一些需要注意的事項,大家可以參考下2014-07-07DBCC CHECKIDENT 重置數(shù)據(jù)庫標識列從某一數(shù)值開始
DBCC CHECKIDENT 重置數(shù)據(jù)庫標識列從某一數(shù)值開始2009-10-10MSSQL 2008 自動備份數(shù)據(jù)庫的設(shè)置方法
最近項目中,需要用到MSSQL自動定時備份功能,本來想利用C#自己寫一個的,但是聽說在MSSQL2008中已經(jīng)集成了功能強大的自動備份功能,于是便提刀上陣,狠狠地琢磨了一番2017-04-04