Can i create a table with variable number of columns?

I have a list of unknown and variable length and I want to put it at the top of the columns.
how do I do that?

someone knows about that?