SQL query against "bad word" filter list -
my client wants maintain list of "bad words" can check auto-generated usernames against. way, named "fred uckman" can automatically rolled on different username format.
given particular input (@username nvarchar(60)), how best can query against single column table see if input contains of "bad words" in table?
build table single column , bad words
select count(*) badwords @username '%'+thebadword+'%'
Comments
Post a Comment