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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -