MySql數據庫簡單瞭解

鏈接數據庫 首先嚐試鏈接數據庫,這裏使用PyMySQL鏈接MySQL,並建立一個新數據庫。mysql #導入pymysql import pymysql #使用connect鏈接 db = pymysql.connect(host='localhost', user='root', password='123456', port=3306) #調用光標(操做遊標) cursor = db.curs
相關文章
相關標籤/搜索