When running this query:
SELECT id,selected_placements
FROM app_data.content_cards
I get a table like this:
+----+-------------------------------+
| id | selected_placements |
+----+-------------------------------+
| 90 | {162,108,156,80,163,155,NULL} |
+----+-------------------------------+
| 91 | {} |
+----+-------------------------------+
What I want to do now is get this same information but with the arrays splitted into rows so I get a result like this:
+----+---------------------+
| id | selected_placements |
+----+---------------------+
| 90 | 162 |
+----+---------------------+
| 90 | 108 |
+----+---------------------+
| 90 | 156 |
+----+---------------------+
| 90 | 80 |
+----+---------------------+
| 90 | 163 |
+----+---------------------+
| 90 | 155 |
+----+---------------------+
As you can see I don't want to get rows with null value in "selected_placements".
I am using PostgreSQL 8.0.2.
Many thanks!