Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mysql.connector
- db=mysql.connector.connect(user='root',password='123456',host='localhost',database='notown')
- cursor=db.cursor()
- stmt='select * from albums'
- cursor.execute(stmt)
- rows=cursor.fetchall()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement