[melbourne-pug] Question about adding members to list : hypothetical just for interest kind of question

Ben Finney ben+python at benfinney.id.au
Fri Feb 21 01:15:25 CET 2014


David Crisp <dcrisp at netspace.net.au> writes:

> In this case I am reading in data from a SQL database query(pymssql)

If you want to eliminate duplicates from your query, do so with ‘SELECT
DISTINCT’. Then you don't ever get the duplicate rows in the first place :-)

-- 
 \          “Ocean, n. A body of water occupying about two-thirds of a |
  `\     world made for man — who has no gills.” —Ambrose Bierce, _The |
_o__)                                        Devil's Dictionary_, 1906 |
Ben Finney



More information about the melbourne-pug mailing list