insert into mysql file and it's directory using Python -
i combine file_name , directory insert mysql table using python.
the code
cursor.execute("insert library (book_name, author, written, book_link, images) values (%s, %s, %s, 'library/'%s, 'images/'%s )" , (book_name, author, written, book_link, images))
gives me unwanted single quote '
symbols, this:
images/'me ibrary/'my life
how avoid wrong syntax?
Comments
Post a Comment