[Tutor] Python x SQL

Daniel Yoo dyoo@hkn.EECS.Berkeley.EDU
Thu, 10 Aug 2000 14:23:58 -0700 (PDT)

On Thu, 10 Aug 2000, Gustavo Passos Tourinho wrote:

> Hey...
> Thanks for your help.
> I'm using linux. There no problem, isnt it?

No problem; I'm using the MySQLdb module myself for my database
programming.  Here's the link to the module:


It works well --- my code often looks something like:

  conn = MySQLdb.connect(db="test")
  cursor = conn.cursor()
  cursor.execute("select * from books")
  print cursor.fetchall()

I don't have experience with other databases like PostgreSQL or Oracle,
but they should be pretty similar.