小板凳先占个位~~~
from django.db import connection, connections
# cursor = connection.cursor()
cursor = connections['db2'].cursor()
cursor.execute("SELECT * from app01_student ", )
row = cursor.fetchall()
print(row)
小板凳先占个位~~~
from django.db import connection, connections
# cursor = connection.cursor()
cursor = connections['db2'].cursor()
cursor.execute("SELECT * from app01_student ", )
row = cursor.fetchall()
print(row)