On 20/01/20 4:35 AM, Python wrote:
^Bart wrote:
I ran this code:
#!/usr/bin/python
import MySQLdb
# Open database connection
db = MySQLdb.connect("localhost","root","MyPwd","MyDB")
# prepare a cursor object using cursor() method
cursor = db.cursor()
# Drop table if it already exist using exe
^Bart wrote:
I ran this code:
#!/usr/bin/python
import MySQLdb
# Open database connection
db = MySQLdb.connect("localhost","root","MyPwd","MyDB")
# prepare a cursor object using cursor() method
cursor = db.cursor()
# Drop table if it already exist using execute() method.
cursor.execute("DROP