just change whatever you are storing to be in vertical structure,instead of horizontal. so instead of create table foo(a int, b int, cint, etc), try:
create table foo(name varchar, val int);
common mistake I've seen committed by people..