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.
有没有办法在 DESCRIBE 表查询中使用 GROUP_CONCAT?希望输出如下:
ID,标题,正文
而不是典型的描述...
这应该可以解决问题:
SELECT GROUP_CONCAT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='your-table-name';