how to get list of Databases “Schema” names of MySql using java JDBC

后端 未结 4 753
误落风尘
误落风尘 2020-11-29 09:25

how to get list of Databases \"Schema\" names of MySql using java JDBC ?

4条回答
  •  有刺的猬
    2020-11-29 10:25

    • Either use SHOW DATABASES to see if it is inside,
    • Check the INFORMATION_SCHEMA,
    • or just do USE DATABASE; and catch the error.

提交回复
热议问题