I have an array 1,2,2,1 that is created by req.body.amount in Node.js. How do I convert that array into a column in mysql like:
1,2,2,1
req.body.amount
amount