declare @t_str varchar(2000)begin set @t_str='select id from users'
if(@p_pwd<>'')
exec(@t_str+[email protected]_pwd'')