python3 mysql 多表查询 一.准备表 创建二张表: company.employee company.department #建表 create table department( id int, name varchar(20) ); create table employee( id int primary key auto_increment, name varchar(20), sex enum('male','female') not null default 'male'…
一.环境 mac OS + python3.6 + pymysql 二.执行 1.语句 select count(user_id) from chezhubangapppp.yfq_user where register_dt between '2018-11-01' and '2018-12-01'; 写成这样直接会报错,说between and之间必须是时间类型 2.修改后 "select count(user_id) from chezhubangapppp.yfq_user where…