15.00 - Success Response - Teradata Database

Teradata Database SQL Fundamentals

prodname
Teradata Database
vrm_release
15.00
category
Programming Reference
featnum
B035-1141-015K

Success Response

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  

    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