Skip to content

bulk insert using CSV file #1842

Answered by sidorares
mizuochi-hikaru asked this question in Q&A
Discussion options

You must be logged in to vote

The easiest way to figure out how client side interpolation works is to simplify your example and 1) factor out CSV parsing ( just copy couple of rows of data and have them hardcoded and 2) factor out db communication. you can just use console.log(mysql.escape('sql, parameters)) for quicker iterations - play around until you get the correct valid sql syntax

If you can paste your starting point with hardcoded data and sql query I can try to help you along

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mizuochi-hikaru
Comment options

@mizuochi-hikaru
Comment options

@mizuochi-hikaru
Comment options

@sidorares
Comment options

Answer selected by mizuochi-hikaru
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