Gossamer Forum
Home : General : Databases and SQL :

Mysql - query - sorting by field, but I want only certain values in that field

Quote Reply
Mysql - query - sorting by field, but I want only certain values in that field
Hi All

I would like to create an SQL Dump that displays all the records having a certain field value.

Right now, my query string shows all the records, sorted by the field.

Quote:
SELECT * FROM csup_tickets ORDER BY subject LIMIT 0, 2000

What I want is to be able to display all of the records that have a value of "fred" in the subject field.

subject "fred"

How can I modify the above query string to pull out only the subject "fred" records?

Many thanks Smile

------------------------------------------

Last edited by:

DogTags: Apr 11, 2002, 5:30 AM
Subject Author Views Date
Thread; hot thread Mysql - query - sorting by field, but I want only certain values in that field DogTags 19009 Apr 11, 2002, 4:34 AM
Thread; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Paul 18510 Apr 11, 2002, 4:59 AM
Thread; hot thread Re: [Paul] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18429 Apr 11, 2002, 5:22 AM
Post; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Wil 18424 Apr 11, 2002, 5:31 AM
Thread; hot thread Re: [Paul] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18624 Apr 11, 2002, 5:28 AM
Thread; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Wil 18444 Apr 11, 2002, 5:35 AM
Thread; hot thread Re: [Wil] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18477 Apr 11, 2002, 5:47 AM
Thread; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Wil 18509 Apr 11, 2002, 5:54 AM
Post; hot thread Re: [Wil] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18391 Apr 11, 2002, 6:24 AM
Thread; hot thread Re: [Wil] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18605 Apr 11, 2002, 6:43 AM
Post; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Paul 18468 Apr 11, 2002, 6:47 AM
Thread; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Wil 18422 Apr 11, 2002, 6:47 AM
Thread; hot thread Re: [Wil] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18391 Apr 18, 2002, 6:56 AM
Thread; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Paul 18324 Apr 18, 2002, 7:05 AM
Post; hot thread Re: [Paul] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18310 Apr 18, 2002, 8:34 AM
Thread; hot thread Re: [Paul] Mysql - query - sorting by field, but I want only certain values in that field
DogTags 18346 May 8, 2002, 3:33 PM
Post; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
sponge 18250 May 8, 2002, 6:38 PM
Post; hot thread Re: [DogTags] Mysql - query - sorting by field, but I want only certain values in that field
Paul 18403 Apr 11, 2002, 5:35 AM