0

I have to check for tables in PostgreSQL database that have empty rows, using JDBC, and then delete them from the server. How can I do that? I'm pretty convinced I'd have to iterate through ResultSet object I'd get from the "search" query and put the table names in a looped DROP statement, but have no idea how to retrieve them.

Jack_Russell
  • 323
  • 5
  • 20

1 Answers1

0

check List all tables in postgresql information_schema

in short select * from information_schema.tables shows all tables

Mehdi M
  • 1
  • 1