Advertisement
econz

Firebird - Procurar Texto em Procedures e Triggers

Sep 6th, 2013
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.38 KB | None | 0 0
  1. SELECT
  2.    'TRIGGER' AS TIPO,
  3.    T.RDB$TRIGGER_NAME AS NOME,
  4.    T.RDB$TRIGGER_SOURCE AS CODIGO
  5. FROM RDB$TRIGGERS T
  6. WHERE
  7.    UPPER(T.RDB$TRIGGER_SOURCE) LIKE '%' || :TEXTO || '%'
  8.  
  9. UNION ALL
  10.  
  11. SELECT
  12.    'PROCEDURE' AS TIPO,
  13.    P.RDB$PROCEDURE_NAME AS NOME,
  14.    P.RDB$PROCEDURE_SOURCE AS CODIGO
  15. FROM RDB$PROCEDURES P
  16. WHERE
  17.    UPPER(P.RDB$PROCEDURE_SOURCE) LIKE '%' || :TEXTO || '%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement