Re: How to do a "SELECT DISTINCT"
Re: How to do a "SELECT DISTINCT"
- Subject: Re: How to do a "SELECT DISTINCT"
- From: Sacha Mallais <email@hidden>
- Date: Tue, 22 Mar 2005 13:23:38 -0800
On Mar 22, 2005, at 1:03 pm, Sébastien Gruhier wrote:
I would like to perform a "select distinct" on my database.
Actually I do a fecthSpecification like this
EOFetchSpecification fetchSpec = new EOFetchSpecification("Table",
new
EOKeyValueQualifier("attribute",
EOQualifier.QualifierOperatorEqual,
new Integer(1)),
null);
editingContext.objectsWithFetchSpecification(fetchSpec);
I get all elements from Table that have "attribute = 1". I would like
to add something like only with a distinct "name".
Any ideas?
RTFM:
http://developer.apple.com/documentation/WebObjects/Reference/API/com/
webobjects/eocontrol/EOFetchSpecification.html#setUsesDistinct(boolean)
sacha
--
Sacha Michel Mallais - 400 lb. chimp
Global Village Consulting Inc.: http://www.global-village.net/
1. Never tell everything at once.
-- Ken Venturi, Ken Venturi's Two Great Rules of Life
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden