-1

I am working on a project where i must get all table names using JPA then store the names somewhere. Using mysql query I can use "Show tables" but using that in JPA doesn't work.How can i achieve this?

tapiwa takaindisa
  • 101
  • 1
  • 2
  • 8

1 Answers1

-1

I never tried something like that but you can try with that query:

SELECT table_name FROM information_schema.tables where table_schema='<your_database_name>';
TheOni
  • 810
  • 9
  • 26