rdbms

How do cursors work in Python's DB-API?

How do cursors work in Python's DB-API? Question: I have been using python with RDBMS’ (MySQL and PostgreSQL), and I have noticed that I really do not understand how to use a cursor. Usually, one have his script connect to the DB via a client DB-API (like psycopg2 or MySQLdb): connection = psycopg2.connect(host=’otherhost’, etc) And …

Total answers: 3