Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgresql print sessions using the database

select pid as process_id, 
       usename as username, 
       datname as database_name, 
       client_addr as client_address, 
       application_name,
       backend_start,
       state,
       state_change
from pg_stat_activity;
Comment

PREVIOUS NEXT
Code Example
Sql :: truncate table mysql 
Sql :: mysql group by day 
Sql :: sql error 1175 
Sql :: mysql remove last character 
Sql :: sql skip the first row 
Sql :: mysql concatenate two columns into one 
Sql :: revoke a role from user microsoft sql server 
Sql :: create schema sql server 
Sql :: update column name and datatype in sql 
Sql :: start mysql server mac 
Sql :: how to get last row of table in sql 
Sql :: append column sql 
Sql :: sql server check port number 
Sql :: psql list rules 
Sql :: grant permission in postgres 
Sql :: mysql count newlines in field 
Sql :: mysql remove last empty newline 
Sql :: add mysql to path 
Sql :: mysql get first 2 characters of string 
Sql :: sql server convert date to int 
Sql :: dynamics 365 x++ aggregate querybuilddatasource 
Sql :: monthname sql 
Sql :: oracle kill session by sql_id 
Sql :: set password mysql 
Sql :: oracle sql first day of year 
Sql :: describe sql server 
Sql :: SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1 
Sql :: convert series number to date in sql 
Sql :: mysql order by desc limit 
Sql :: drop all foreign key constraints mysql 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =