SELECT column_name from information_schema.columns WHERE table_name = '表名称';
原地址:http://blog.163.com/shexinyang@126/blog/static/136739312201261610513802/
本文介绍了一种使用 SQL 语句查询数据库表结构的方法,通过 SELECT 语句从 information_schema.columns 表中获取指定表的所有列名。
SELECT column_name from information_schema.columns WHERE table_name = '表名称';
原地址:http://blog.163.com/shexinyang@126/blog/static/136739312201261610513802/

被折叠的 条评论
为什么被折叠?