数据库
coolcooljob
Linux运维修行中!
展开
-
redis数据库总结
本文转自点击打开链接第一部分 redis的常用指令一、针对key的操作1.1 del key [key .. ] , 删除指定的一个或者多个key;1.2 dump key , 序列化给定的key1.3 restore key ttl serialized-value , 反序列化到key1.4 exists ke...转载 2018-05-23 20:38:16 · 214 阅读 · 0 评论 -
python中连接三大主流数据库mysql,mongodb,redis
1.python中mysql数据库的连接import pymysql connection=pymysql.connect('localhost','root','password','database') #创建连接对象 cursor=connection.cursor() #创建游标对象 sql=...原创 2018-06-05 21:09:33 · 1358 阅读 · 0 评论