Success Response | SQL Fundamentals | Teradata Vantage - 17.10 - Success Response - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Fundamentals

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

A success response contains an activity count that indicates the total number of rows involved in the result.

For example, the activity count for a SELECT statement is the total number of rows selected for the response. For a SELECT, CALL (when the stored procedure or external stored procedure creates result sets), COMMENT, or ECHO statement, the activity count is followed by the data that completes the response.

An activity count is meaningful for statements that return a result set, for example:
  • SELECT
  • INSERT
  • UPDATE
  • DELETE
  • HELP
  • MERGE
  • SHOW
  • EXPLAIN
  • CREATE PROCEDURE
  • REPLACE PROCEDURE
  • CALL (when the stored procedure or external stored procedure creates result sets)

For other SQL statements, activity count is meaningless.

Example: Using an Interactive SELECT Statement

The following interactive SELECT statement returns the successful response message.

SELECT AVG(f1)
FROM Inventory;

*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
Average(f1)
-----------
         14