I am using Postgres 8.3.11. I have a table like:
user | countries (varchar(100))
h | us
g | brazil,germany
What I would like is the obvious
user | countries
h | us
g | brazil
g | germany
I created a function that gets a string like 'brazil,germany' and outputs it as a single column table:
|germany|
|brazil |
I can use a cursor to go row by row and execute it to get what I want, but there must be a better SQL-ish way.