例: TruncateHistorySPの呼び出し - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL演算子およびユーザー定義関数

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
2021年1月
Language
日本語
Last Update
2021-03-31
dita:mapPath
ja-JP/xwv1596137968859.ditamap
dita:ditavalPath
ja-JP/xwv1596137968859.ditaval
dita:id
B035-1210
Product Category
Software
Teradata Vantage

プロシージャを呼び出すには:

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