2005-2-24: Continue Python PostgreSQL learning, today's experience is that things from the community are the most dynamic and vital :) Try PGDB today, and the Module recommended for PostgreSQL, before use, first to install first An eGenix-mx-base module (http://www.egenix.com/files/python/egenix-mx-extensions.html#download-mxbase) then try the code:
Java code:
Import PGDB
CONN = PGDB.
Connect
(Host =
'localhost', Database =
'Qingfeng', User =
'qingfeng', Password =
'123'
)
Cur = conn.
Cursor
(
)
Cur.
EXECUTE
("SELECT * from DREAM"
)
Print Cur.
Rowcount
Don't make a summary of explanation, just record the little bit of learning, complete some, and do more summary