执行存储过程的忧虑
create proc p1
@sign varchar(20)
as
begin
select id,@sign form mytb where mytime < '2208-10-10'
end
mytb
create table mytb
(
id int identity(1,1) primary key,
mytime datatme,
num int
)
go
exec pq 'select count(*) from mytb where num>5'
总之就是如何在里面吧这个‘特殊变量执行了’。