Fork me on GitHub

数据库表基础信息查询

select column_name AS 字段名,COLUMN_type as 数据类型, is_nullable AS is_null,column_comment as 注释 from information_schema.columns where table_schema ='数据库名' and table_name = '表名' ;

posted @ 2021-06-01 13:46  壶小旭  阅读(46)  评论(0编辑  收藏  举报