还是在这里贴吧:
CREATE PROCEDURE [sp_Seekerinfo]
@LastUpdateDate varchar(50) , @GetSearch Nvarchar(800)
As
Begin
declare @s Nvarchar(1000)
set @s = 'SELECT Top 1000 seekerID,trueName,gender,age,MaxEduLevel,maxEduSchool,maxEduCourse,WorkPos,LastUpdateDate FROM v_seekerInfo WHERE isvalid = 1 '+@GetSearch+' GROUP BY seekerID,trueName,gender,age,MaxEduLevel,maxEduSchool,maxEduCourse,WorkPos,LastUpdateDate order by '+@LastUpdateDate+' desc'
Exec(@s)
exec sp_executesql @s
End
GO
其中:@GetSearch为搜索条件,但还是超时了!?