SQL查找不连续的数据

select * from 表 t where not exists (select 1 from 表 where Goods_ID=t.Goods_ID-1)

posted @ 2020-12-25 18:01  wu9xia  阅读(1201)  评论(0编辑  收藏  举报