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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -