Jul-01-2019, 08:05 AM
(This post was last modified: Jul-01-2019, 08:06 AM by pradeepkumarbe.)
Such a silly mistake I have made
Before
In my question from line 21 to 35 is a wrong way of formatting SQL query. That caused the issue, hope this might help someone.
Before
sql_format = "INSERT INTO " + database_name + "." + l_filename + "(" + f_str + ")"I changed this to
f'INSERT INTO {l_filename} ({f_str}) VALUES ({place_holder})'
In my question from line 21 to 35 is a wrong way of formatting SQL query. That caused the issue, hope this might help someone.