Forums

This topic is locked

Where Clause

Posted 11 Jun 2002 07:49:59
1
has voted
11 Jun 2002 07:49:59 Man CHAN posted:
Hi,

The following is my SQL statement. How can I change from Like to not like?
Therefore it can search other combination except "la".

SELECT * FROM Persons WHERE FirstName LIKE '%la%'


Many Thanks,
Man

Replies

Replied 11 Jun 2002 11:24:56
11 Jun 2002 11:24:56 Marcellino Bommezijn replied:
Just change LIKE to NOT LIKE and your query will return the records that do not contain 'la'.

Edited by - mm-ultradev on 11 Jun 2002 11:25:39
Replied 11 Jun 2002 11:56:52
11 Jun 2002 11:56:52 Man CHAN replied:
Thanks!
Work Fine

Reply to this topic