I'm trying to change the password of the non-admin user in PostgreSQL using jdbc connection.
statement.executeQuery("ALTER ROLE user1 WITH PASSWORD '6789'");
This above query is throwing:
org.postgresql.util.PSQLException: No results were returned by the query
How to resolve this issue?