option (recompile)
使用在语句
select * from Student where id =1 option (recompile)
使用在存储过程
create proc proc_test (@i int) with recompile
as
select * from Student where id = @i
标签:option,recompile,where,编译,Student,强制,proc,id
来源: https://www.cnblogs.com/SHa-Jazy/p/16510507.html