A little SELECT syntax
From: Dan (dan_at_danneh.demon.co.uk)
Date: 10/26/03
- Previous message: John Richter: "Re: DBI::Sybase build problems w/5.8.1, Tru64 4.0G, cc, make test,"
- Next in thread: David N Murray: "Re: A little SELECT syntax"
- Reply: David N Murray: "Re: A little SELECT syntax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Sun, 26 Oct 2003 11:22:47 -0000
Hi,
I've got a database that stores small messages for a service, what I want to
be able to do is get all rows from the database where the columns "sent" and
"readdate" match, I have this, but it's erroring. Any pointers please?
SELECT * FROM memodata WHERE 1 AND to=1 AND readdate=sent ORDER BY id ASC
Many thanks,
Dan
P.S: Using MySQL, DBD::mysql, not sure if you need to know that, but saying
anyway ;)
- Previous message: John Richter: "Re: DBI::Sybase build problems w/5.8.1, Tru64 4.0G, cc, make test,"
- Next in thread: David N Murray: "Re: A little SELECT syntax"
- Reply: David N Murray: "Re: A little SELECT syntax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|