java获取mysql表元数据REMARKS为空的解决办法
1,mysql连接新增连接参数(remarks=true&useInformationSchema=true)
例如:jdbc:mysql://localhost:3306/dbName?remarks=true&useInformationSchema=true
2,使用(show create table)命令查询建表语句,再使用正则获取
3,使用(select * from information_schema.tables where table_schema='hnjy_do
原创
2022-02-21 10:47:57 ·
937 阅读 ·
0 评论