Wednesday, January 2, 2013

PSQL: find current database, schema, user

Commands:
SELECT current_database();
SELECT current_schema();
SELECT current_user();
More commands like this, you can find it here. http://www.postgresql.org/docs/7.3/static/functions-misc.html

No comments:

Post a Comment