![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
前热火球员LeBron James
A programmer who can't play basketball is not a good cook
展开
-
备份
SELECT move_user.name, move_user.mobile, FROM_UNIXTIME( move_user.create_time ), move_user_channel.openid, move_user_channel.app, move_user_channel.session_key, move_user_channel.gid, move_user_channel.extappid, move_user_channel.dist,...原创 2021-05-13 18:09:51 · 84 阅读 · 0 评论 -
django.db.utils.OperationalError: (2003, “Can‘t connect to MySQL server on ‘‘([Errno 61] Connection
在settings.py同目录下的__inti__.py中加入下面代码即可:import pymysqlpymysql.version_info = (1, 4, 13, "final", 0)pymysql.install_as_MySQLdb() # 默认连接MySQL的方式原创 2021-04-29 09:43:46 · 760 阅读 · 0 评论 -
mysql条件表达式
一,MySQL if 语句用法:SELECT IF(gender='男',1,2) from physical_enroll_info;二,MySQL 中 case when then … else end 的简单使用:SELECT CASE usercenter.physical_enroll_info.gender WHEN '女' THEN 2 WHEN '男' THEN 1 ELSE 'null' END from physical_enroll_info;打印:...原创 2021-04-14 17:19:06 · 462 阅读 · 0 评论