摘要:
1、所有买家各消费行为对比 #去除重复的购买行为的数据,避免刷单行为 select act from (selectcount(user_id) act from user_log where action='0' union all selectcount(user_id) act from us 阅读全文
posted @ 2022-11-14 11:23
–L-m-
阅读(47)
评论(0)
推荐(0)
摘要:
使用python连接数据库mysql,然后在一张数据表的基础上读取到数据。 如果数据大,连接mysql时读取数据的速度很慢的时候。使用sql语句获取想要的信息后,再创建一张新表保存到数据库,为数据可视化的数据做准备: 思路: 连接数据库--> SQL:创建新表 (数据太少,查询很快就没有必要) -- 阅读全文
posted @ 2022-11-14 11:22
–L-m-
阅读(122)
评论(0)
推荐(0)