有表a,里面a1字段的记录值有1,3,4,6,9,现在想写个sql语句显示2,5,7,8怎么写呢? select a1-1 from table_awhere (a1-1)<>0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from (select top 9 (select sum(1) from sysobjects where id<=tem.id) num from sysobjects tem) tem2where num not in (select 你的列 from 你的表) sql中的空格 熟悉全文索引的朋友请进,遇到一个问题 T-SQL问题 怎样修改Sql Server安装路径 如何删除带外键的行? 我也来问点基础的问题 求救呀 问一个存储过程--为什么返回结果不对 关于关联表的问题 数据库中数据删除的问题,高分请教。 一个数据访问的并发问题 convert问题
(select top 9 (select sum(1) from sysobjects where id<=tem.id) num from sysobjects tem) tem2
where num not in (select 你的列 from 你的表)