I am writing a script in Python and I am using MySQLdb
package.
con1 = mdb.connect('127.0.0.1', 'root', '', 'teacher')
con2 = mdb.connect('127.0.0.1', 'root', '', 'student', true)
I can execute a query using a single cursor in python. But I want to write query to use tables from both the database at once. How can I do that?