Skip to content

Query placeholder for column names in insert statement #1628

Answered by dougwilson
soysandeep asked this question in Q&A
Discussion options

You must be logged in to vote
connection.query(`INSERT INTO ${table} (??) VALUES (?)`, [columns, values])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sidorares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1627 on September 04, 2022 21:46.