| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
cubrid_query(PECL CUBRID >= 8.3.1) cubrid_query — Send a CUBRID query 説明
resource cubrid_query
( string
$query
[, resource $conn_identifier
] )
cubrid_query() sends a unique query (multiple queries are not supported) to the
currently active database on the server that's associated with the specified パラメータ
返り値
For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
cubrid_query() returns a resource on success, or
For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc,
cubrid_query() returns The returned result resource should be passed to cubrid_fetch_array(), and other functions for dealing with result tables, to access the returned data. Use cubrid_num_rows() to find out how many rows were returned for a SELECT statement or cubrid_affected_rows() to find out how many rows were affected by a DELETE, INSERT, REPLACE, or UPDATE statement.
cubrid_query() will also fail and return 例
例1 Invalid Query
The following query is syntactically invalid, so cubrid_query() fails and returns
<?php
例2 Valid Query The following query is valid, so cubrid_query() returns a resource.
<?php 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「cubrid_query - Send a CUBRID query」をGoogle検索
|