[英]Display column names with out datatype in MYSQL
show columns from table_name;
The above MYSQL command, displays all column names with data types in a table. 上面的MYSQL命令显示表中包含数据类型的所有列名。 I want only the column names with out other information.
我只想要列名而没有其他信息。
Any kind of help is appreciated. 任何形式的帮助表示赞赏。 Thanks.
谢谢。
SELECT column_name
FROM information_schema.columns
WHERE table_schema = 'db_name'
AND table_name = 'your_table'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.