create proc pTest
    @day int
as
begin
    if @day between 8 and 15 
        select * from 表1
    else
        select * from 表2
end
go