select column_name from information_schema.columns where table_name='表名稱' and table_schema='庫名稱'
當然也是可以對column_name進行擴充,例如concat(column_name,','),還是比較簡單的
select column_name from information_schema.columns where table_name='表名稱' and table_schema='庫名稱'
當然也是可以對column_name進行擴充,例如concat(column_name,','),還是比較簡單的