First page Back Continue Last page Overview Graphics

Insert into a table, part 1

#!/usr/bin/python

import sys

import MySQLdb

try:

c = MySQLdb.connect (host = "localhost",

user = "testuser",

passwd = "testpass",

db = "test")

except MySQLdb.Error, e:

print "Error %d: %s" % (e.args[0], e.args[1])

sys.exit (1)

cursor = c.cursor ()