deeejay

psql - Check if table is used in any views

Apr 24th, 2018
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select v.*
  2. from information_schema.views v
  3. where v.view_definition like '%tablename%';
Advertisement