次のSELECT文は、テーブル オブジェクトに対して定義されたデフォルト以外のすべてのルールを選択します。
SELECT GroupName, RulesetName, LikePattern, LikeEscape, NotLikePattern, NotLikeEscape FROM DBC.RepCaptureRulesV WHERE DefaultOpt = 'N' AND ObjectKind = 'T' ORDER BY GroupName, RulesetName, LikePattern, LikeEscape, NotLikePattern, NotLikeEscape;
結果:
GroupName repgroup RuleSetName prmtablers LikePattern repuser.prmtab% LikeEscape ? NotLikePattern ? NotLikeEscape ? GroupName repgroup RuleSetName subtablers LikePattern repuser.subtab% LikeEscape ? NotLikePattern repuser.subtabx% NotLikeEscape ?