問題:上級單位要來檢查數(shù)據(jù),我的服務(wù)器的數(shù)據(jù)庫是SQL server 2000,上級單位要求我用SQL語句在服務(wù)器端隨機查詢50條數(shù)據(jù)出來。可是我的服務(wù)器里有些錯誤數(shù)據(jù)不希望他們看到,能不能有什么辦法不讓他們看到。 SQL語句: select top 50 x from a_1 where c=xxxx
select top 10 ID,Name into T--生成測試表 from sysobjects go create view Test--生成視圖名 as select * from T where ID>5 go select top 2 * from test order by newID()--隨機取兩條