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 19498 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 18997 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 18917 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 18905 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 19112 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 18925 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 18964 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 18991 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 18874 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 19093 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 18949 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 18909 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 18882 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 18814 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 18795 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 18836 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 18734 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 18884 Apr 11, 2002, 5:35 AM