17.10 - Example: Calling TruncateHistorySP - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

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

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