create proc test
@inv1 varchar(50),
@inv2 varchar(50)
as
select * from aaa where inv>=@inv1 and inv<=@inv2go
试试上面的语句。