where判断,全表范围返回符合条件的记录when判断,case索引的该条范围,返回bool ture or false这道题既然ID可能不连续就应该写成select * from A where id between 31 and 40;
select top 10 * from A where id not in (select top 30 id from A) 查找10条记录不包含在所查找到的30条记录里至于后面的 我从来没见过用when = =! 这个。。。。。