![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
404canfind
这个作者很懒,什么都没留下…
展开
-
MySQL查询某个库表数据量,表字段数
查出每个表数据量 select TABLE_NAME,TABLE_ROWS from information_schema.`TABLES` where TABLE_SCHEMA = '表名'; 查每个库表字段数量 select TABLE_NAME,table_rows,data_type,column_type from information_schema.columns where TABLE_SCHEMA='表名'; ...原创 2020-10-29 10:14:54 · 230 阅读 · 0 评论 -
MySQL截取文件名(最后一个“.”前面的字符串)
所截字符串:收款模板.ftl SELECT * FROM `t_pvm_template` tpt WHERE SUBSTRING(tpt.TEMPLATE_NAME,1,CHAR_LENGTH(tpt.TEMPLATE_NAME)-INStr(REVERSE(tpt.TEMPLATE_NAME),'.')) = '收款模板'; 注:可在INStr(REVERSE(tpt.TEMPLATE_NAME),'.'))写成INStr(REVERSE(tpt.TEMPLATE_NAME),'.')+1)根据需求原创 2020-05-21 22:19:56 · 943 阅读 · 0 评论