Q. Which record will get inserted in the table by following code?


import mysql.connector as sqltor
mycon = sqltor.connect (host = "localhost", user = "learner", passwd = "fast", database = "test")
cursor = mycon.cursor()
query = "INSERT INTO books (title, isbn) VALUES (%s, %s)".% ('Ushakaal', ‘12678987036’)
cursor.execute(query)
mycon.commit()



Answer :-

‘Ushakaal’, 12678987036

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post