见贤思小齐,知足常乐呵

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2024年1月12日

摘要: 如何删除重复数据, 只保留一条 drop table if exists temp_dm_patientinfo_id; create table temp_dm_patientinfo_id as select record_id, -- 重复键 max(id) max_id from dm_pa 阅读全文
posted @ 2024-01-12 13:50 Suckseedeva 阅读(4) 评论(0) 推荐(0) 编辑

摘要: 1. show create procedure 2. 两个系统表 information_schema.routines 可查询出存储过程的内容,但是入参和出参没包含 information_schema.PARAMETERS 可查询入参和出参 select concat(p1,ifnull(p2 阅读全文
posted @ 2024-01-12 13:47 Suckseedeva 阅读(2) 评论(0) 推荐(0) 编辑

2023年7月14日

摘要: 上面的报错,是在MySQL里执行动态拼接SQL后报错的。 -- 先定义两段SQL set @update_sql_fm=concat('update ads_gcl3e_patient_',@base_group_short_name,'_detail1 t1 join temp_gcl3e_rec 阅读全文
posted @ 2023-07-14 18:45 Suckseedeva 阅读(625) 评论(0) 推荐(0) 编辑

2021年11月22日

摘要: 参数排序方法,只能作用于临时表,不能作用于join的结果。不然报错!!! 正确用法如下: set @p = null; set @r = 0; select record_id,doctor_name,doctor_guid, rank,create_date from ( SELECT s.*, 阅读全文
posted @ 2021-11-22 20:22 Suckseedeva 阅读(97) 评论(0) 推荐(0) 编辑

2021年10月8日

摘要: 数据标签,没有特定的方式,搜了很久才实验成功,记录在此。 一. demo数据 二. 绘制柱形图 三. 绘制横向条形图 套用了组合图加标签的方式,此时相当于只有1个子图的组合图。只要赋予了X和Y轴数据,基本上不需要修改啥 阅读全文
posted @ 2021-10-08 21:32 Suckseedeva 阅读(385) 评论(0) 推荐(0) 编辑

摘要: 记录一下 一. 单条折线图 二. 多条折线图 阅读全文
posted @ 2021-10-08 21:03 Suckseedeva 阅读(392) 评论(0) 推荐(0) 编辑

2021年7月23日

摘要: https://jingyan.baidu.com/article/4ae03de35bd6487eff9e6bb5.html 阅读全文
posted @ 2021-07-23 16:22 Suckseedeva 阅读(109) 评论(0) 推荐(0) 编辑

2021年7月16日

摘要: 1. 查询Mysql的进程 -- 查看全部进程 show processlist; -- 查询进行中的进程 select *from information_schema.processlist where command not in('Sleep','Killed'); -- 查询某个库的进程 阅读全文
posted @ 2021-07-16 17:24 Suckseedeva 阅读(124) 评论(0) 推荐(0) 编辑

2021年7月14日

摘要: 例子如下: 阅读全文
posted @ 2021-07-14 19:06 Suckseedeva 阅读(80) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2021-07-14 19:00 Suckseedeva 阅读(160) 评论(0) 推荐(0) 编辑