简体   繁体   English

如何在phpMyAdmin中获取分区表

[英]How can I get sectioned tables in phpMyAdmin

I'm using phpMyAdmin to create tables for my project database. 我正在使用phpMyAdmin为我的项目数据库创建表。 Currently my tables are in this order table->{contents} but I want them to be like this table->section_name1{contents},section2_name{contents} . 目前,我的表按此table->{contents} table->section_name1{contents},section2_name{contents}排列,但我希望它们像这个表table->section_name1{contents},section2_name{contents} An example of what I want in JSON format is in this link . 我想要的JSON格式示例在此链接中

It's not really clear what you're asking. 不清楚您要问什么。 If you just want the content in the tables to be groupable by section_name, like in the JSON example, then you just need to make section_name a column in your table and populate it appropriately for each section. 如果仅希望表中的内容可以按section_name进行分组(如JSON示例中所示),则只需将section_name设为表中的一列,并为每个节适当地填充它。

If it's not that then can you please explain in more detail what you are trying to do? 如果不是那样,那么您能详细解释一下您要做什么吗?

EDIT: Like this: 编辑:这样:

------------------------------------------------------------------------
| Title     | Name        | Image                                       |
------------------------------------------------------------------------
| Section 1 | Donut       | https://thecustomizewindows.com/wp-....     |            
------------------------------------------------------------------------
| Section 1 | Eclairs     | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------
| Section 1 | Froyo       | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------
| Section 2 | Donut       | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------
| Section 2 | Eclairs     | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------
| Section 2 | Froyo       | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------
| Section 3 | Donut       | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------
| Section 3 | Eclairs     | https://thecustomizewindows.com/wp-....     | 
------------------------------------------------------------------------

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM