计算mysql记录的存储大小

发布于 2025-01-15 20:12:51 字数 296 浏览 2 评论 0原文

我正在从事一个员工管理项目,其中一个功能是将特定模块转售给其他公司,以便他们也可以使用该系统。所有的管理工作都将交给超级管理员。并且存储空间也将分配给公司。现在,我如何计算特定公司的存储空间。因为有不同的表存储所有公司的数据。那么,如何通过不同表中的MySQL行或记录来计算特定公司或卖家的存储空间呢?

Example:

company Table:
ID, Name

Department Table:
ID, Name company_id

Employee Table:
ID Name, department_ID

I am working on an employee management project in which a feature is to resell specific modules to other companies so that they could also use this system. And all the administration will be handed over to super admin. And the storage spaces will also be allotted to companies. Now, How can i calculate the storage space for a specific company. Because there are different tables in which the all companies data is stored. So, how can i caluclate the storage space for a specific company or seller through the MySQL rows or records from different tables?

Example:

company Table:
ID, Name

Department Table:
ID, Name company_id

Employee Table:
ID Name, department_ID

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文