ASP 数据过滤 WHERE语句写法 每次从数据库读取一条内容,但是都不要是我已经读取过的。数据库中有100条数据,是固定的。我是这样写的
sql="select top 1 * from table where id<>1 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 and id<>2 order by Rnd("&Rnd()&"-id)"