Sorry I meant like. Good catch Bill. Guess that's what happens when you are in a hurry.
Mija, yes, you can use like and wildcard in a where clause. Your solution is very poor. Never use a cursor unless you have no other choice. For simple query like this to use a cursor is very bad programming. Cursors are extremely inefficent and should be avoided at all costs.
In my office programmers are forbidden to write cursors. On the very rare occasions when they have been necessary only the dba could write them. In two years, we've written maybe one cursor that wasn't for database admin purposes. They are simply not necessary 99% of the time they are used.
You should forget the cursor syntax and learn how to write set-based SQL.