Create and populate a nested table(array)

Hi can someone possibly help me with the following

I am trying to create a nested table and populate it with data like this (please ignore the blank lines)

123456

123456

123456

123456

123456

123456

I thought using the code below would work but it gives me an error in the second for loop. If someone could tell me how I go about setting up , populating and referencing data in the above table that would be much appreciated

myrow={mycolumn={}}

for c = 1,6 do

myrow[c] = c

for d = 1,6 do

    myrow[c].mycolumn[d] = d

end

end

something like this

myrow={}
for c = 1,6 do
   myrow[c] = {}
    for d = 1,6 do
        myrow[c][d] = d
    end
end

Thanks ruilov just what I was after