Example: Calling TruncateHistorySP - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

To call the procedure:

CALL TDMaps.TruncateHistorySP(current_timestamp, :NumofDeleteRows);
*** Procedure has been executed.
*** Warning: 3212 The stored procedure returned one or more result sets.
*** Total elapsed time was 2 seconds.

NumDeletedRows
--------------
             1

*** ResultSet# 1 : 3 rows returned by "TDMAPS.TRUNCATEHISTORYSP".

Table          NumRowsDeleted
-------------  --------------
ActionHistory               0
LogTbl                      1
AnalyzeLogTbl               0