Help Center/ GaussDB/ Developer Guide(Distributed_8.x)/ FAQs/ 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;