![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
宁芯
这个作者很懒,什么都没留下…
展开
-
SQL脚本更新至pdm
一、 处理数据库脚本 ENGINE=InnoDB AUTO_INCREMENT=\d+ DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT 二、 根据以下步骤,打开pdm软件,选择需要逆向转化的SQL脚本文件 三、使用script脚本将注释comment转name 四、添加外键依赖 五、完成,上传git,标注更新至XXX 备注:在pdm里查找表,Ctl+F ...原创 2021-05-26 11:03:17 · 193 阅读 · 0 评论 -
MySQL-统计字符出现次数+查询数据库状态+脏数据生成存储过程
1、统计字符出现次数 select * from sys_ehrdepartment where dep_name like 'FTU%' AND (length(layer_path)-length(replace(layer_path,'/','')))<4 2、查询数据库状态 show status like '%read';---吞吐量 show status like 'up...原创 2018-04-19 09:21:27 · 249 阅读 · 0 评论 -
mysql小知识总结
SHOW PROCESSLIST; 数据库死锁 进程查看 -- 查询自增长步长 SHOW VARIABLES LIKE 'auto_inc%'; -- 查询自增长 字段下一个值 select auto_increment_increment from information_schema.tables where table_schema='数据库名' and table_name='表明'; ...原创 2018-07-23 11:41:30 · 178 阅读 · 0 评论 -
pdm应用
1、mysql的sql脚本生成pdm文件 2、将sql脚本里的comment的内容替换成name列的内容 运行的脚本: Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ...原创 2018-11-06 08:59:40 · 306 阅读 · 0 评论