HOw to use DISTICT in select Quoery in SQLITE for iphone.?
is DISTINCT is supported in iPhone ?
HOw to use DISTICT in select Quoery in SQLITE for iphone.?
is DISTINCT is supported in iPhone ?
It appears to be - but might depend on exactly what you're trying to do, and perhaps how.
The DISTINCT keyword causes a subset of result rows to be returned, in which each result row is different. NULL values are not treated as distinct from each other. The default behavior is that all result rows be returned, which can be made explicit with the keyword ALL.
Typically, to adapt an existing query to return a distinct set of rows you would just add the distinct keyword after select:
SELECT DISTINCT
...
FROM
...