JAVA-特殊SQL语句(查询库中所有表…

xiaoxiao2021-02-28  72

1.查询某个数据库中所有表名称: select table_name from information_schema.tables where table_schema='具体数据库名称' and table_type='base table' 2.查询某一张表中的字段名和数据类型: select distinct column_name,data_type from information_schema.columns where table_name = '表名' 更多详情请点击 http://blog.sina.com.cn/zhaojianjunzjj
转载请注明原文地址: https://www.6miu.com/read-73879.html

最新回复(0)