ISBN BOOK Author Genre
123456 Child dreams John and Helda Educational, emotional
435678 Emotions Dr. Fedrick Patrins and Veela manok Educational, emotional, creative, awareness
I am able to load ISBN and Book in one table:(text file is separated by tab)
with open('file path') as xyz:
read=csv.reader(xyz, delimiter='\t')
total_books = iter(read)`enter code here`
next(total_books)
for row in total_books:
cursor.execute"INSERT INTO book_titles VALUES (%s, %s)", (row[0], row[1]))
db.commit()
But, what if column has more than one values like in Author and Genre