PHP Doku:: Is used to check whether the instance - function.cubrid-is-instance.html

Verlauf / Chronik / History: (6) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Datenbankerweiterungen ≥ Anbieterspezifische Datenbankerweiterungen ≥ Cubrid ≥ Cubrid Funktionen ≥ cubrid_is_instance

Ein Service von Reinhard Neidl - Webprogrammierung.

Cubrid Funktionen

<<cubrid_insert_id

cubrid_list_dbs>>

cubrid_is_instance

(PECL CUBRID >= 8.3.0)

cubrid_is_instance — Is used to check whether the instance

Beschreibung

int cubrid_is_instance ( resource $conn_identifier , string $oid )

The cubrid_is_instance() function is used to check whether the instance pointed by the given oid exists or not.

Parameter-Liste

conn_identifier

Connection identifier.

oid

Oid of the instance that you want to check the existence.

Rückgabewerte

1, if such instance exists;

0, if such instance does not exist;

-1, in case of error

Beispiele

Beispiel #1 cubrid_is_instance() example

<?php
$target_oid 
= cubrid_get ($con, $oid, "customer");
$res = cubrid_is_instance ($con, $target_oid);
if (
$res == 1) {
   echo 
"$oid is presents.\n";
} else if (
$res == 0){
   echo 
"$oid is not presents.\n";
} else {
   echo 
"error\n";
}
?>

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)