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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -