I have a table, for example, "mytable". It has several columns: col1, col2, col3. There is some data in it, placed like that:
id col1 col2 col3 1 aasdas 2 acxvxc 3 dgdgdff 4 hfgdgh 5 jmjkh 6 dfgdfgd 7 bcbxcb
For some reason I need table, formatted like that:
id col1 col2 col3 1 aasdas acxvxc dgdgdff 2 hfgdgh jmjkh dfgdfgd 3 bcbxcb
I thought I could do something like INSERT INTO "mytable" ("col1") VALUES (SELECT "col1" FROM "mytable" WHERE "col1"<>'')
and etc, but of course it doesn't work.
Any ideas? =)