Challenge

Project 2

import mysql.connector
testdb = mysql.connector.connect(
  host="localhost",
  user="root",
  password="marcianjermy682!",
  database = "alumni")
testcursor = testdb.cursor()
testcursor.execute("SELECT * FROM college_a_hs LIMIT 1000")
for i in testcursor:
    print(i)
    
testcursor.execute("SELECT * FROM college_a_se LIMIT 1000")
for i in testcursor:
    print(i)
    
testcursor.execute("SELECT * FROM college_a_sj LIMIT 1000")
for i in testcursor:
    print(i)
    
testcursor.execute("SELECT * FROM college_b_hs LIMIT 1000")
for i in testcursor:
    print(i)
    
testcursor.execute("SELECT * FROM college_b_se LIMIT 1000")
for i in testcursor:
    print(i)
    
testcursor.execute("SELECT * FROM college_b_sj LIMIT 1000")
for i in testcursor:
    print(i)
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.