Insert 2D Array into MySQL Database : <p>So i have a multidimensional array as follows:</p>

<pre><code>int[][] multiarray = {
                { 0, 1, 0, 1, 0 },
                { 1, 0, 1, 0, 1 },
                { 0, 1, 0, 1, 0 },
                { 1, 0, 1, 0, 1 },
                { 0, 1, 0, 1, 0 },

};
</code></pre>

<p>I have a MySQL database with 5 columns:</p>

<pre><code>|number1|number2|number3|number4|number5|
</code></pre>

<p>My question is, how would i insert this array into the mysql database?</p>

<p>Thanks</p>
