문제

Is there a way to use GROUP_CONCAT in the DESCRIBE table query? Was hoping for output like:

id,title,body

Rather than the typical description...

도움이 되었습니까?

해결책

This should do the trick:

SELECT 
    GROUP_CONCAT(COLUMN_NAME) 
FROM INFORMATION_SCHEMA.COLUMNS 
WHERE
    TABLE_SCHEMA=DATABASE() 
AND TABLE_NAME='your-table-name';
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top