查询数据库表字段名和有哪些表

查询表字段

select column_name from information_schema.COLUMNS where TABLE_SCHEMA = (select database()) and TABLE_NAME='xbr_config_out_datasource'

查询数据库表

select table_name from information_schema.TABLES where TABLE_SCHEMA=(select database())
    原文作者:洛洛木南2
    原文地址: https://segmentfault.com/a/1190000020300644
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞