My SQL获取某个表的列名
DESC TableName
SHOW COLUMNS FROM TableName
SELECT COLUMN_NAME FROM information_schema.columns WHERE table_name=‘tablename‘
原文地址:https://www.cnblogs.com/haimishasha/p/9193773.html
时间: 2024-10-13 01:13:50
DESC TableName
SHOW COLUMNS FROM TableName
SELECT COLUMN_NAME FROM information_schema.columns WHERE table_name=‘tablename‘
原文地址:https://www.cnblogs.com/haimishasha/p/9193773.html