17.10 - Example: Using RepCaptureRulesV - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

The following SELECT statement selects all non-default rules defined for a table object:

SELECT GroupName, RulesetName, LikePattern, LikeEscape, NotLikePattern, NotLikeEscape
  FROM DBC.RepCaptureRulesV
  WHERE DefaultOpt = 'N' AND ObjectKind = 'T'
  ORDER BY GroupName, RulesetName, LikePattern, LikeEscape,
  NotLikePattern, NotLikeEscape;

Result:

 GroupName repgroup
  RuleSetName prmtablers
  LikePattern repuser.prmtab%
  LikeEscape ?
NotLikePattern ?
 NotLikeEscape ?
   GroupName repgroup
  RuleSetName subtablers
  LikePattern repuser.subtab%
  LikeEscape ?
NotLikePattern repuser.subtabx%
NotLikeEscape ?