Help Center/ GaussDB/ Developer Guide(Centralized_8.x)/ FAQ/ How do I obtain the username for connecting to a database?
Updated on 2024-06-03 GMT+08:00

How do I obtain the username for connecting to a database?

Answer: Run the following command to query the current username:
gaussdb=#SELECT current_user;