
mysql
Morgan Wang
行走在网络上,希望能对别人有点贡献的人!
展开
-
MYSQL 查看支持的引擎
SELECT ENGINE FROM INFORMATION_SCHEMA.ENGINESWHERE SUPPORT IN ('YES','DEFAULT') AND TRANSACTIONS='YES'转载 2018-08-22 16:25:31 · 918 阅读 · 0 评论 -
mysql 统计数据字段去重
1:mysql 去重的正确节奏select count(DISTINCT id) from table where id in ('1','2')2:mysql 分批统计select count(id) from table where id in ('1','2') group_by id...原创 2018-09-15 18:04:32 · 3519 阅读 · 0 评论 -
无限层级mysql数据表结构
# 无限层级mysql数据表结构# 创建表-- auto-generated definitioncreate table target_resource( id int not null primary key, resource_id int null, resource_team_id int null);# 创建关系表...原创 2018-10-26 13:55:28 · 1320 阅读 · 0 评论 -
Python cProfile 性能测试装饰器方法
脚本执行性能测试 import cProfile from cProfile import Profile def profile_wrapper(func): def wrapper(*args, **kwargs): prof = Profile() prof.enable() func(*args, **kwargs) ...原创 2018-11-15 16:16:02 · 1112 阅读 · 0 评论 -
Package ‘libmysqld-dev’ has no installation candidate
安装 mysql-Python 的时候提示错误:maydolly@localhost:~/MySQL-python-1.2.5$ sudo pip install MySQL-PythonCollecting MySQL-Python Using cached MySQL-python-1.2.5.zip Complete output from command python s...转载 2019-08-07 18:22:59 · 1873 阅读 · 0 评论