USE YGTest;
declare @a1 decimal(18,3)declare @bMin floatdeclare @bMax floatset @a1=300
select @bMin = 1,@bMax = 100
if @a1 between @bMin and @bMax print ‘在区间‘ else print ‘不在区间‘
判断数据是否在指定区间内
原文:https://www.cnblogs.com/Anthony518/p/14771805.html