摘要:
import pymysql# 1.连接mysql数据库conn = pymysql.connect(host="127.0.0.1",port=3306,user="root",password="123456",db="mb",charset="utf8")# 2. 获取游标对象cs = con 阅读全文
摘要:
-- 省市县 -- 湖南省 对应的市 SELECT * FROM provinces WHERE province = '湖南省'; SELECT * FROM cities WHERE provinceid = 430000; -- 一个语句查询 SELECT * FROM cities WHER 阅读全文