12 2020 档案
摘要:https://blog.csdn.net/xyang81/article/details/51555473 https://www.cnblogs.com/mzli/p/12621422.html
阅读全文
摘要:-- 检查表的元数据是否有异常 -- 判断逻辑为如果表有记录,但table_rows为0则异常 select t2.table_name ,t1.cnt ,t2.table_rows ,case when t1.cnt = 10 and t2.table_rows = 0 then 1 else 0
阅读全文
摘要:#!/bin/sh max_length=0 for table_name in `cat tables` do current_length=$(echo ${table_name}|wc -c) if [ ${current_length} -gt ${max_length} ] then ma
阅读全文
摘要:MYSQL压缩表测试 1. 创建表 -- 压缩表 SET GLOBAL innodb_file_per_table=1; SET GLOBAL innodb_file_format=Barracuda; CREATE TABLE compress_01 ( id varchar(36) PRIMAR
阅读全文
摘要:MySQL [DB_NAME]> desc TABLE_NAME; | status | enum('待派单','待指派','待整改','已整改','已通过','被退回','已作废','非正常关闭') | YES | | NULL | | select status+0 as status_num,
阅读全文
摘要:# https://www.cnblogs.com/pmars/archive/2013/02/17/2914444.html 在SHELL编程中,经常要处理一些字符串变量。比如,计算长度啊、截取子串啊、字符替换啊等等,常常要用到awk、expr、sed、tr等命令。下面给大家介绍个简单的字符串处理
阅读全文