zoukankan      html  css  js  c++  java
  • mysql 数据库,表存储 大小

    use information_schema;

    -- 查询一个数据库存储大小

    select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='database nane'; 85MB

    -- 查询一个表存储大小

    select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='database nane' and table_name='saleorder'; 0.23MB/505

    select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='database nane' and table_name='productset'; 0.08MB/134

    select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='database nane' and table_name='product'; 0.19MB/487

    select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='database nane' and table_name='productattribute'; 0.11MB/711

    select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='database nane' and table_name='userpictures'; 0.02MB/30

  • 相关阅读:
    css 写一个三角形
    vue 知识汇总,中级阶段的。
    获取url参数封装的
    vue 知识点
    不换行css
    微信小程序的横向滚动
    git提交本地分支到远程分支
    linux shell head tail 用法简介
    PHP服务重启
    MongoDB用户创建
  • 原文地址:https://www.cnblogs.com/youlixishi/p/5821609.html
Copyright © 2011-2022 走看看