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.

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
Jack_Russell
  • 323
  • 4
  • 19

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