Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

username sql

/*GET NAME OF USER DATABASE pg*/
SELECT inet_client_addr();
SELECT * FROM pg_stat_activity
WHERE client_addr = inet_client_addr();
 
PREVIOUS NEXT
Tagged: #username #sql
ADD COMMENT
Topic
Name
9+6 =