バージョンごとのドキュメント一覧

38.4. ユーザ定義プロシージャ #

<title>User-Defined Procedures</title>

A procedure is a database object similar to a function. The key differences are: プロシージャは関数と似たデータベースオブジェクトです。 重要な違いは以下の通りです。

The explanations in the following sections about how to define user-defined functions apply to procedures as well, except for the points made above. 次節を含む以降の節で説明するユーザ定義関数の定義方法は、上で述べた点を除けばプロシージャにも当てはまります。

Collectively, functions and procedures are also known as <firstterm>routines</firstterm><indexterm><primary>routine</primary></indexterm>. There are commands such as <link linkend="sql-alterroutine"><command>ALTER ROUTINE</command></link> and <link linkend="sql-droproutine"><command>DROP ROUTINE</command></link> that can operate on functions and procedures without having to know which kind it is. Note, however, that there is no <literal>CREATE ROUTINE</literal> command. 関数とプロシージャは、ひとまとめにルーチンとも言われます。 関数とプロシージャを区別することなしに操作できるALTER ROUTINEDROP ROUTINEなどのコマンドがあります。 しかしながら、CREATE ROUTINEコマンドは無いことに注意してください。