display
Fri Jan 17 2025 08:24:18 GMT+0000 (Coordinated Universal Time)
Saved by
@enter123
import mysql.connector as c
mydb = c.connect(
host="localhost",
user="root",
password="1234",
database="cvr"
)
mycursor = mydb.cursor()
mycursor.execute("select * from student3")
students=mycursor.fetchall();
for std in students:
print(std)
content_copyCOPY
Comments