16.10 - Success Response - Teradata Database

Teradata Database SQL Fundamentals

Product
Teradata Database
Release Number
16.10
Published
June 2017
Content Type
Programming Reference
Publication ID
B035-1141-161K
Language
English (United States)
Last Update
2018-04-25

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