D
D
DDwrt1002019-10-08 12:31:57
Java
DDwrt100, 2019-10-08 12:31:57

How to get a list of tables in a database from program code?

Good afternoon, please tell me how to use Spring to request a list of existing tables from the connected database? It turns out that the list of these tables in the database is not static, and when working, I would like to check that such a table exists.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bestie, 2019-10-10
@bestie

If the question is still relevant, then the easiest option is, depending on what kind of database you have, see how to retrieve a list of all tables through SQL through a query, and then iterate over it:
- for example, as suggested here https://stackoverflow .com/questions/53592533/list-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question