0

Got a shortcoming of brain.exe for some reason currently.

I am using Node.js and node-postgres to query my DB.

I am trying to insert an array of text, basically, into a PostgreSQL column.

logging the array with JSON.stringify() looks like this:

["id1","id2","id3"]

Will I just be able to

'INSERT INTO table (array) VALUES ($1)' [data]'

?

(extremely simplified - The data array is variable in length)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.