Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^3: DBI: select distinct returns same values

by erix (Parson)
on Sep 21, 2019 at 13:56 UTC ( #11106488=note: print w/replies, xml ) Need Help??

in reply to Re^2: DBI: select distinct returns same values
in thread DBI: select distinct returns same values

I can't get your results. In my hands, I get the distinct values, as expected, also with that little chunk of perl code of yours. If I remove the 'DISTINCT' I get the doubles (I made a 4 row table).

So you must be overlooking some detail. Maybe you can write up a small but complete) code example (including data) with data (!) that can be run against a postgres database (remove/change the user/password, of course). I expect that while you prepare that, you will see what went wrong.

(by the way: the Pg don't-do-this page advises against this data type )

edit: I was mistaken; I probably futzed my own try-out code, but I see you got good answers already so I'll leave it at that.

  • Comment on Re^3: DBI: select distinct returns same values

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11106488]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2020-10-25 05:24 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (249 votes). Check out past polls.