Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 phpmyadmin 的关系视图中,可以选择默认显示列,这对于外键非常方便。
我想在 php 中获取此列名,但此信息存储在哪里?
我在 information_schema 中搜索过,但在任何地方都找不到。
信息存储在一个名为phpmyadmin. 要获取该信息,请发出如下查询:
phpmyadmin
SELECT `display_field` FROM `phpmyadmin`.`pma_table_info` WHERE `db_name` = 'your_db' AND `table_name` = 'your_table'