摘要: dic={1:'alex','age':35,'hobby':{'girl_name':'铁锤','age':45},'is_handsome':True} dic={'age':'alex','age':35,'hobby':{'girl_name':'铁锤','age':45},'is_hand 阅读全文
posted @ 2019-11-05 20:36 一只小白呀 阅读(106) 评论(0) 推荐(0) 编辑
摘要: def sqlexec(last_nid, is_next): import pymysql conn = pymysql.connect(host='192.168.12.29', port=3306, user='root', passwd='123', db='IndexDB', charse 阅读全文
posted @ 2019-11-05 20:15 一只小白呀 阅读(1019) 评论(0) 推荐(0) 编辑
摘要: 1、视图 视图当作表2、触发器 insert ...3、存储过程 insert into tb1() update tb2... 事务:innodb p12(out status int): try: insert into tb1() update tb2... set status=1 exce 阅读全文
posted @ 2019-11-05 19:52 一只小白呀 阅读(120) 评论(0) 推荐(0) 编辑
摘要: import pymysqlconn = pymysql.connect(host='127.0.0.1', port=3306, user='root', password='666', db='sqlexample',charset='utf-8')cursor = conn.cursor(cu 阅读全文
posted @ 2019-11-05 19:47 一只小白呀 阅读(610) 评论(0) 推荐(0) 编辑