Home : General : Databases and SQL :

General: Databases and SQL: Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field: Edit Log

Here is the list of edits for this post
Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Code:
SELECT * FROM tickets WHERE (subject LIKE '%fred% OR subject LIKE %dog%') AND (name LIKE '%ethel% OR name LIKE %bone%')
ORDER BY subject, name LIMIT 0, 2000

- wil

Last edited by:

Wil: Apr 11, 2002, 6:49 AM

Edit Log: