set @execStr = 'select @HaveID =  ' + ltrim(rtrim(@columnStr)) + ' from ' + ltrim(rtrim(@tableName)) + ' where ' + ltrim(rtrim(@filterStr))