cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturn an array with the list of all existing CUBRID databases

说明

cubrid_list_dbs ([ resource $conn_identifier ] ) : array

This function returns an array with the list of all existing Cubrid databases.

参数

conn_identifier

The CUBRID connection.

返回值

An numeric array with all existing Cubrid databases; on success.

FALSE on failure.

范例

Example #1 cubrid_list_dbs() example

<?php
$conn 
cubrid_connect("localhost"33000"demodb");

$db_list cubrid_list_dbs($conn);
var_dump($db_list);

cubrid_disconnect($conn);
?>

以上例程会输出:

array(1) {
  [0]=>
  string(6) "demodb"
}
相关文章
php cubrid cubrid mysql 兼容性函数php cubrid mysql 兼容性函数 return the number of rows affected by the last sql statementphp cubrid mysql 兼容性函数 return the current cubrid connection charsetphp cubrid mysql 兼容性函数 close cubrid connectionphp cubrid mysql 兼容性函数 get db name from results of cubrid list dbsphp cubrid mysql 兼容性函数 return the numerical value of the error message from previous cubrid operationphp cubrid mysql 兼容性函数 get the error messagephp cubrid mysql 兼容性函数 fetch a result row as an associative array a numeric array or bothphp cubrid mysql 兼容性函数 return the associative array that corresponds to the fetched rowphp cubrid mysql 兼容性函数 get column information from a result and return as an objectphp cubrid mysql 兼容性函数 return an array with the lengths of the values of each field from the current rowphp cubrid mysql 兼容性函数 fetch the next row and return it as an objectphp cubrid mysql 兼容性函数 return a numerical array with the values of the current rowphp cubrid mysql 兼容性函数 return a string with the flags of the given field offsetphp cubrid mysql 兼容性函数 return the name of the specified field indexphp cubrid mysql 兼容性函数 return the name of the table of the specified fieldphp cubrid mysql 兼容性函数 return the type of the column corresponding to the given field offsetphp cubrid mysql 兼容性函数 return an array with the list of all existing cubrid databasesphp cubrid mysql 兼容性函数 return the number of columns in the result setphp cubrid mysql 兼容性函数 return the value of a specific field in a specific row
关注编程学问公众号