|
The EXECUTE statement has two uses:
To invoke a stored procedure:
EXEC[UTE] stored-procedure [ ( [ procedure-parameter [ , procedure-parameter ]... ] ) ] stored-procedure ::= the name of a stored procedure procedure-parameter ::= the input parameter(s) required by the stored procedure
Within a user-defined stored procedure:
EXEC[UTE] ( string [ + string ]... ) string ::= a string, string variable, or an expression that returns a character string
The following example executes a procedure without parameters:
The following examples execute a procedure with parameters:
The following procedure selects the student ID from the Billing table.
|
Chapter contents
Prev topic: END
|