python鏈接操做mysql數據庫

用python來實現對mysql增刪改查的操做,具體代碼以下: #!/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb #打開數據庫鏈接 db = MySQLdb.connect("localhost","root","1181ff69","test_demo",charset='utf8' ) # 使用cursor()方法獲取操做
相關文章
相關標籤/搜索