create table t5 ( item varchar(20))
insert t5 select '1-10000'
union all select '10000-20000'
union all select '20000-30000'
union all select '40000-50000'
----selectselect * from table where score between 0 and 100
select * from table where score <=100
---insert
declare @score int
set @score=...
if @score<=100
begin
insert into table(...,score,...) values(...,@score,....)
end
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)