PHP Doku:: Gets column types - function.cubrid-column-types.html

Verlauf / Chronik / History: (2) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

Cubrid Funktionen

<<cubrid_column_names

cubrid_commit>>

cubrid_column_types

(PECL CUBRID >= 8.3.0)

cubrid_column_types — Gets column types

Beschreibung

array cubrid_column_types ( resource $req_identifier )

The cubrid_column_types() function gets column types of query results by using req_identifier.

Parameter-Liste

req_identifier

Request identifier.

Rückgabewerte

Array of string which containing column types, when process is successful.

FALSE, when process is unsuccessful.

Beispiele

Beispiel #1 cubrid_column_types() example

<?php
$req 
= cubrid_execute ($con, "select * from person");
if (
$req) {
   
$coltypes = cubrid_column_types ($req);
   
$colnames = cubrid_column_names ($req);
   while (list (
$key, $coltype) = each ($coltypes))
      echo 
$coltype;
   while (list (
$key, $colname) = each ($colnames))
      echo 
$colname;
   
cubrid_close_request ($req);
}
?>

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",...)