Collection Contents Index LOOP statement OPEN statement [ESQL] [SP] pdf/chap9.pdf

Reference Manual
   CHAPTER 9. SQL Statements     

MESSAGE statement


Function 

To display a message.

Syntax 

MESSAGE expression, ...
[ TYPE { INFO | ACTION | WARNING | STATUS } ]
[ TO { CLIENT | CONSOLE | LOG }]

Permissions 

Must be connected to the database.

Side effects 

None.

See also 

CREATE PROCEDURE statement

Description 

The MESSAGE statement displays a message, which can be any expression. Clauses can specify where the message is displayed.

Valid expressions can include a quoted string or other constant, variable, or function. However, queries are not permitted in the output of a Message statement even though the definition of an expression includes queries.

TYPE clause     The TYPE clause only has an effect if the message is sent to the client. The client application must decide how to handle the message. Interactive SQL displays messages in the following locations:

TO clause     This clause specifies the destination of a message:

Standards and compatibility 

Example 


Collection Contents Index LOOP statement OPEN statement [ESQL] [SP] pdf/chap9.pdf