标签: java postgresql jdbc
我必须使用JDBC检查PostgreSQL数据库中有空行的表,然后从服务器中删除它们。我怎样才能做到这一点?我非常确信我必须遍历ResultSet对象,我会从"搜索"查询并将表名放在循环的DROP语句中,但不知道如何检索它们。
答案 0 :(得分:0)
检查List all tables in postgresql information_schema
简而言之select * from information_schema.tables显示所有表格
select * from information_schema.tables