Search
 
SCRIPT & CODE EXAMPLE
 

SQL

psql list rules

select n.nspname as rule_schema, 
       c.relname as rule_table, 
       case r.ev_type  
         when '1' then 'SELECT' 
         when '2' then 'UPDATE' 
         when '3' then 'INSERT' 
         when '4' then 'DELETE' 
         else 'UNKNOWN' 
       end as rule_event
from pg_rewrite r  
  join pg_class c on r.ev_class = c.oid 
  left join pg_namespace n on n.oid = c.relnamespace 
  left join pg_description d on r.oid = d.objoid ;
Comment

psql list view rules

select n.nspname as rule_schema, 
       c.relname as rule_table, 
       case r.ev_type  
         when '1' then 'SELECT' 
         when '2' then 'UPDATE' 
         when '3' then 'INSERT' 
         when '4' then 'DELETE' 
         else 'UNKNOWN' 
       end as rule_event
from pg_rewrite r  
  join pg_class c on r.ev_class = c.oid 
  left join pg_namespace n on n.oid = c.relnamespace 
  left join pg_description d on r.oid = d.objoid 
Comment

PREVIOUS NEXT
Code Example
Sql :: sqlite column 
Sql :: SQL Syntax of RIGHT JOIN 
Sql :: MySql count occurences more than" 
Sql :: how to install mysql without admin rights 
Sql :: 10000000000000000000 am to meters 
Sql :: SQL Modulo (Remainder) Operator 
Sql :: realtime database push multiple values 
Sql :: how to set up an anonymous function to variable in swift 
Sql :: how to create a table in sql stack overflow 
Sql :: sql shell psql cannot enter password 
Sql :: sql int +1 
Sql :: Oracle Function execution 
Sql :: A good way of running a SQL query in JDBC using a parameterized statement 
Sql :: Un mask mysql 
Sql :: query archive mode 
Sql :: convert db timestamp to date 
Sql :: mysql replication change database name 
Sql :: QUERY JPQL 
Sql :: acceso denegado en msql 
Sql :: create database like 
Sql :: INSERT INTO RAHULDEV 
Sql :: SQL Hello, [firstname] [lastname] 
Sql :: how do you execute the fragment or sqlBatch using scriptdom 
Sql :: get create sql of hibernqte entity 
Sql :: java hide mysql login credentials 
Sql :: añadir clave foranea mysql 
Sql :: sql how to display two atributes as one in sql 
Sql :: tsql For XML Path('), TYPE).value 
Sql :: sql dmv to capture updates 
Sql :: Laravel SQLSTATE[HY093] with array query 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =