array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.odbc-procedures.php', 1 => 'odbc_procedures', 2 => 'Get the list of procedures stored in a specific data source', ), 'up' => array ( 0 => 'ref.uodbc.php', 1 => 'ODBC Funktionen', ), 'prev' => array ( 0 => 'function.odbc-procedurecolumns.php', 1 => 'odbc_procedurecolumns', ), 'next' => array ( 0 => 'function.odbc-result.php', 1 => 'odbc_result', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uodbc/functions/odbc-procedures.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
odbc_procedures — Get the list of procedures stored in a specific data source
$odbc
,$catalog
= null
,$schema
= null
,$procedure
= null
Lists all procedures in the requested range.
odbc
Das ODBC-Verbindungs-Objekt, siehe odbc_connect() für Details.
catalog
Der Katalog ('Kennzeichner' in ODBC 2 Terminologie).
schema
Das Schema ('Besitzer' in ODBC 2 Terminologie).
Dieser Parameter akzeptiert die
folgenden Suchmuster: %
für 0 oder mehr Zeichen und _
für genau ein beliebiges Zeichen.
procedure
The name.
Dieser Parameter akzeptiert die
folgenden Suchmuster: %
für 0 oder mehr Zeichen und _
für genau ein beliebiges Zeichen.
Gibt ein ODBC-Ergebnis-Objekt zurück containing the informationBei einem Fehler wird false
zurückgegeben..
The result set has the following columns:
PROCEDURE_CAT
PROCEDURE_SCHEM
PROCEDURE_NAME
NUM_INPUT_PARAMS
NUM_OUTPUT_PARAMS
NUM_RESULT_SETS
REMARKS
PROCEDURE_TYPE
The result set is ordered by PROCEDURE_CAT
,
PROCEDURE_SCHEMA
and PROCEDURE_NAME
.
Version | Beschreibung |
---|---|
8.4.0 |
odbc erwartet nun eine Instanz von
Odbc\Connection; vorher wurde eine
Ressource erwartet.
|
8.4.0 | Diese Funktion gibt nun eine Instanz von Odbc\Result zurück; vorher wurde eine Ressource zurückgegeben. |
8.0.0 | Prior to this version, the function could only be called with either one or four arguments. |
Beispiel #1 List stored Procedures of a Database
<?php
$conn = odbc_connect($dsn, $user, $pass);
$procedures = odbc_procedures($conn, $catalog, $schema, '%');
while (($row = odbc_fetch_array($procedures))) {
print_r($row);
break; // further rows omitted for brevity
}
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array ( [PROCEDURE_CAT] => TutorialDB [PROCEDURE_SCHEM] => dbo [PROCEDURE_NAME] => GetEmployeeSalesYTD;1 [NUM_INPUT_PARAMS] => -1 [NUM_OUTPUT_PARAMS] => -1 [NUM_RESULT_SETS] => -1 [REMARKS] => [PROCEDURE_TYPE] => 2 )