python connect to db2

yuzx yuzx at
Fri Jan 14 03:01:25 EST 2005


	i am python newbie,i try to connect to db2 use python,i find it on
python-db2 doc:

	$ python
	>>> import DB2
	>>> conn = DB2.connect(dsn='sample', uid='db2inst1', pwd='ibmdb2')
	>>> curs = conn.cursor()

but i don't know about dsn,

i think a way like python connect to mysql :


anyone can help me ?

thank you

More information about the Python-list mailing list