怎么样写一个按时间段查询的存储过程?
就是后面where条件用between and 那部怎么写
[解决办法]
create proc proc_name
(
@startdate datetime,
@enddate datetime
)
as
select
* from tb where dt between @startdate and @enddate
go
[解决办法]