My remote MySQL database and local MySQL database have the same table structure, and the remote and local MySQL database is utf-8charset.
You'd better merge value and sql template string and print it , make sure the sql is correct.
how do I insert some rows that I select from remote MySQL database to my local MySQL database