access字段问题我的数据库中有4个字段有一万条记录字段一字段二字段三字段四123461626364怎样判断这四个字
access字段问题
我的数据库中有4个字段
有一万条记录
字段一 字段二 字段三 字段四
1 2 3 4
61 62 63 64
怎样判断这四个字段的数字是连续数字?
[解决办法]
select f1,f2,f3,f4
from tablename
where f2-f1=1 and f3-f2=1 and f4-f3=1
[解决办法]
select count(f1)
from tablename
where f2-f1<>1 or f3-f2<>1 or f4-f3<>1
