Use the SELECT command to start a stored procedure on a IBM® Netezza® host.
SELECT procedure_name(arguments)
| Input | Description |
|---|---|
| procedure_name | The name of the stored procedure that you want to start. |
| arguments | Specifies a list of constant or literal arguments to the procedure. The arguments might be results of functions, if the functions take only constant/literal arguments as well. |
The SELECT command has the following outputs:
| Output | Description |
|---|---|
| ERROR: EXECUTE PROC: Permission denied. | This error indicates that the current user account does not have Execute permission for the stored procedure. |
| ERROR: Function 'NAME(ARGS)'
does not exist Unable to identify a function that satisfies the argument types You might need to add explicit typecasts |
This message indicates that the user entered incorrect arguments for the stored procedure. A procedure of that name exists, but it is expecting different input arguments. |
MYDB(USER)=> SELECT updateacct();
MYDB(USER)=> SELECT inventorysearch(umbrellas);