MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
weject
V2EX  ›  MySQL

请教各位大佬,这种表格转换成数据格式,怎样做是最优的?

  •  
  •   weject · Jul 29, 2023 · 2316 views
    This topic created in 1034 days ago, the information mentioned may be changed or developed.

    如题,假设我有若干个这样的表格,里面数据如下

    图示

    如果要转换成 mysql 的数据(只考虑输出,不考虑写入)

    如何分表最好?

    Supplement 1  ·  Jul 31, 2023

    pP9Aok9.png

    2 replies    2023-07-30 16:52:46 +08:00
    learningman
        1
    learningman  
       Jul 30, 2023 via Android
    如果是固定的表,那就每个框制定一个唯一的 key 作为字段名,一行一个表
    如果不固定那就得建树了
    weject
        2
    weject  
    OP
       Jul 30, 2023
    @learningman 小组讨论直接存 json...不知道后面扩展功能的时候会不会遇到问题,有做过评价相关系统的小伙伴吗,类似方案直接存 json 后面会有坑么...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   991 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.