■ Data after extraction: Variable name: name
['nameA', 'nameB', 'nameC', 'nameD']
■ sqlite3:table name:user
■ After storing sqlite3
I want to store it as above.
I tried as below, but the variable name goes straight into one line.
I want to store the namesA-D in the database one line at a time.
Do not process
name='\n'.join(name), but try the
cursor.execute(sql,(name,)) part as follows:
© 2022 OneMinuteCode. All rights reserved.