REPLACE QUERY LOGGING is identical to BEGIN QUERY LOGGING except that it enables you to replace an existing query logging rule in DBC.DBQLRuleTbl by submitting a request to replace that rule with a new rule that has the options you specify for it. The following table is a high level summary of what a REPLACE QUERY LOGGING request does.
|IF a rule …||THEN Teradata Database …|
|does not exist||creates one that satisfies the REPLACE QUERY LOGGING specifications.|
See BEGIN QUERY LOGGING for more information relevant to this statement.