随笔分类 -  Mysql

摘要:import pymysql import datainfo import time #获取参数 host = datainfo.host username = datainfo.username password = datainfo.password database = datainfo.db print() #测试数据库连接 def testconnect(): ... 阅读全文
posted @ 2017-05-07 15:52 Blue●Sky 阅读(1683) 评论(0) 推荐(0) 编辑
摘要:Python 3 操作mysql http://www.runoob.com/python3/python3-mysql.html Python3 MySQL 数据库连接 本文我们为大家介绍 Python3 使用 PyMySQL 连接数据库,并实现简单的增删改查。 什么是 PyMySQL? PyMy 阅读全文
posted @ 2017-05-07 13:55 Blue●Sky 阅读(1099) 评论(0) 推荐(0) 编辑
摘要:SELECT * FROM table1 SELECT * FROM table1 WHERE id >= 1 AND id= '2011-08-10' SELECT * FROM table1 WHERE id IS NOT NULL GROUP BY id,t1Name ORDER BY id,t1Name SELECT * FROM (SELECT a.*,b.t2Value FRO... 阅读全文
posted @ 2016-03-23 15:29 Blue●Sky 阅读(361) 评论(0) 推荐(0) 编辑