« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 87 for demodb (0.002 sec.)
cubrid_fetch_object — Fetch the next row and return it as an object | PHP 8.3 17956
cubrid_fetch_object (PECL CUBRID >= 8.3.0) cubrid_fetch_object — Fetch the next row and return it as an object 説明 function cubrid_fetch_object ( resource $result , string $class_name = ? , array $params = ? , int $type = ? ): object This ... , when process is unsuccessful. 例 例1 cubrid_fetch_object() example <?php $conn = cubrid_connect ( "localhost" , 33000 , "demodb" ); $res = cubrid_execute ( $conn , "SELECT * FROM code" ); var_dump ( cubrid_fetch_object ( $res )); // if you want to op ... erate LOB object, you can use cubrid_fetch_object($res, CUBRID_LOB) class demodb_code { public $s_name = null ; public $f_name = null ; public function toString () { var_dump ( $this ); } } var_dump ( cu ... brid_fetch_object ( $res , "demodb_code" )); // if you want to operate LOB object, you can use cubrid_fetch_object($res, "demodb_code", CUBRID_LOB) class dem ...
https://man.mtool.work/php/8.3/function.cubrid-fetch-object.html
cubrid_list_dbs — Return an array with the list of all existing CUBRID database... 9112
cubrid_list_dbs (PECL CUBRID >= 8.3.0) cubrid_list_dbs — Return an array with the list of all existing CUBRID databases 説明 function cubrid_list_dbs ( resource $conn_identifier = ? ): array This function returns an array with the list of a ... ases; on success. false on failure. 例 例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" } 他のマニュアルの関連ページ Django 1.0.1 DuckDB SHOW, SHOW DATABASES, and SHOW SCHEMAS Statements Django 6.1 DuckDB MySQ ...
https://man.mtool.work/php/8.3/function.cubrid-list-dbs.html
cubrid_db_name — Get db name from results of cubrid_list_dbs | PHP 8.3 8642
cubrid_db_name (PECL CUBRID >= 8.3.1) cubrid_db_name — Get db name from results of cubrid_list_dbs 説明 function cubrid_db_name ( array $result , int $index ): string Retrieve the database name from a call to cubrid_list_dbs() . パラメータ ... he error. 例 例1 cubrid_db_name() example <?php error_reporting ( E_ALL ); $conn = cubrid_connect ( 'localhost' , 33000 , 'demodb' , 'dba' , '' ); $db_list = cubrid_list_dbs ( $conn ); $i = 0 ; $cnt = count ( $db_list ); while ( $i < $cnt ) { echo cubr ... id_db_name ( $db_list , $i ) . "\n" ; $i ++; } ?> 上の例の出力は以下となります。 demodb 参考 cubrid_list_dbs() - Return an array with the list of all existing CUBRID databases 他のマニュアルの関連ページ DuckDB ...
https://man.mtool.work/php/8.3/function.cubrid-db-name.html
例 | PHP 8.3 8319
例 The following is a simple example that establishes a connection between PHP and CUBRID. This section will cover the most basic and notable features. The following code required to connect to CUBRID database, which means CUBRID Server and ... CUBRID Broker have to be running. The example below uses the demodb database as an examples. By default it is created during the installation. Make sure it has been created. 例1 Example of D ... the installation. * For details, see "Administrator's Guide." */ $host_ip = "localhost" ; $host_port = 33000 ; $db_name = "demodb" ; /** * Connect to CUBRID Server. Do not make the actual connection, but * only retain the connection information. The re ... of the CUBRID Broker * db_name is the name of CUBRID Database */ $host_ip = "localhost" ; $host_port = 33000 ; $db_name = "demodb" ; $cubrid_con = @ cubrid_connect ( $host_ip , $host_port , $db_name ); if (! $cubrid_con ) { echo "Database Connection Er ...
https://man.mtool.work/php/8.3/cubrid.examples.html
cubrid_bind — Bind variables to a prepared statement as parameters | PHP 8.3 8171
cubrid_bind (PECL CUBRID >= 8.3.0) cubrid_bind — Bind variables to a prepared statement as parameters 説明 function cubrid_bind ( resource $req_identifier , int $bind_index , mixed $bind_value , string $bind_value_type = ? ): bool The cubri ... 3.1 Added BLOB/CLOB data types support. 例 例1 cubrid_bind() example <?php $conn = cubrid_connect ( "localhost" , 33000 , "demodb" , "dba" ); $result = cubrid_execute ( $conn , "SELECT code FROM event WHERE sports='Basketball' and gender='M'" ); $row = ... Clyde Bird Larry Barkley Charles 例2 cubrid_bind() BLOB/CLOB example <?php $con = cubrid_connect ( "localhost" , 33000 , "demodb" , "dba" , "" ); if ( $con ) { cubrid_execute ( $con , "DROP TABLE if exists php_cubrid_lob_test" ); cubrid_execute ( $con ... ); cubrid_execute ( $req ); } ?> 例3 cubrid_bind() BLOB/CLOB example <?php $con = cubrid_connect ( "localhost" , 33000 , "demodb" , "dba" , "" ); if ( $con ) { cubrid_execute ( $con , "DROP TABLE if exists php_cubrid_lob_test" ); cubrid_execute ( $con ...
https://man.mtool.work/php/8.3/function.cubrid-bind.html
cubrid_connect_with_url — Establish the environment for connecting to CUBRID se... 8010
cubrid_connect_with_url (PECL CUBRID >= 8.3.1) cubrid_connect_with_url — Establish the environment for connecting to CUBRID server 説明 function cubrid_connect_with_url ( string $conn_url , string $userid = ? , string $passwd = ? , bool $ne ... ", "12?"); If user or password is empty,you can't delete " : ",the following is an example. $url = "CUBRID:localhost:33000:demodb:::"; パラメータ conn_url A character string that contains server connection information. userid User name for the database ... alse を返します. 例 例1 cubrid_connect_with_url() url without properties example <?php $conn_url = "CUBRID:localhost:33000:demodb:dba::" ; $con = cubrid_connect_with_url ( $conn_url ); if ( $con ) { echo "connected successfully" ; cubrid_execute ( $con ... connect ( $con ); } ?> 例2 cubrid_connect_with_url() url with properties example <?php $conn_url = "CUBRID:127.0.0.1:33000:demodb:dba::?login_timeout=100" ; $con = cubrid_connect_with_url ( $conn_url ); if ( $con ) { echo "connected successfully" ; cub ...
https://man.mtool.work/php/8.3/function.cubrid-connect-with-url.html
cubrid_pconnect_with_url — Open a persistent connection to CUBRID server | PHP ... 8010
cubrid_pconnect_with_url (PECL CUBRID >= 8.3.1) cubrid_pconnect_with_url — Open a persistent connection to CUBRID server 説明 function cubrid_pconnect_with_url ( string $conn_url , string $userid = ? , string $passwd = ? ): resource Establi ... ", "12?"); If user or password is empty,you can't delete " : ",the following is an example. $url = "CUBRID:localhost:33000:demodb:::"; パラメータ conn_url A character string that contains server connection information. userid User name for the database ... lse を返します. 例 例1 cubrid_pconnect_with_url() url without properties example <?php $conn_url = "CUBRID:127.0.0.1:33000:demodb:dba::" ; $con = cubrid_pconnect_with_url ( $conn_url ); if ( $con ) { echo "connected successfully" ; cubrid_execute ( $co ... onnect ( $con ); } ?> 例2 cubrid_pconnect_with_url() url with properties example <?php $conn_url = "CUBRID:127.0.0.1:33000:demodb:dba::?althost=10.34.63.132:33088&rctime=100" ; $con = cubrid_pconnect_with_url ( $conn_url ); if ( $con ) { echo "connecte ...
https://man.mtool.work/php/8.3/function.cubrid-pconnect-with-url.html
cubrid_lob2_read — Read from BLOB/CLOB data | PHP 8.3 7540
cubrid_lob2_read (PECL CUBRID >= 8.4.1) cubrid_lob2_read — Read from BLOB/CLOB data 説明 function cubrid_lob2_read ( resource $lob_identifier , int $len ): string The cubrid_lob2_read() function reads len bytes from the LOB data and returns ... 例1 cubrid_lob2_read() example 1 <?php // test_lob (id INT, contents CLOB) $conn = cubrid_connect ( "localhost" , 33000 , "demodb" , "public" , "" ); $req = cubrid_execute ( $conn , "select * from test_lob" ); $row = cubrid_fetch_row ( $req , CUBRID_LO ... 例2 cubrid_lob2_read() example 2 <?php // test_lob (id INT, contents CLOB) $conn = cubrid_connect ( "localhost" , 33000 , "demodb" , "dba" , "" ); $req = cubrid_execute ( $conn , "select * from test_lob" ); $row = cubrid_fetch_row ( $req , CUBRID_LOB ) ...
https://man.mtool.work/php/8.3/function.cubrid-lob2-read.html
cubrid_lob2_write — Write to a lob object | PHP 8.3 7540
cubrid_lob2_write (PECL CUBRID >= 8.4.1) cubrid_lob2_write — Write to a lob object 説明 function cubrid_lob2_write ( resource $lob_identifier , string $buf ): bool The cubrid_lob2_write() function reads as much as data from buf and stores i ... 例1 cubrid_lob2_write() example 1 <?php // test_lob (id INT, contents CLOB) $conn = cubrid_connect ( "localhost" , 33000 , "demodb" , "dba" , "" ); cubrid_execute ( $conn , "DROP TABLE if exists test_lob" ); cubrid_execute ( $conn , "CREATE TABLE test_l ... 例2 cubrid_lob2_write() example 2 <?php // test_lob (id INT, contents CLOB) $conn = cubrid_connect ( "localhost" , 33000 , "demodb" , "dba" , "" ); cubrid_execute ( $conn , "DROP TABLE if exists test_lob" ); cubrid_execute ( $conn , "CREATE TABLE test_l ...
https://man.mtool.work/php/8.3/function.cubrid-lob2-write.html
cubrid_query — Send a CUBRID query | PHP 8.3 7217
cubrid_query (PECL CUBRID >= 8.3.1) cubrid_query — Send a CUBRID query 説明 function cubrid_query ( string $query , resource $conn_identifier = ? ): resource cubrid_query() sends a unique query (multiple queries are not supported) to the cu ... s syntactically invalid, so cubrid_query() fails and returns false . <?php $conn = cubrid_connect ( 'localhost' , 33000 , 'demodb' ); $result = cubrid_query ( 'SELECT * WHERE 1=1' ); if (! $result ) { die( 'Invalid query: ' . cubrid_error ()); } ?> 例2 ... supplied by a user, for example $firstname = 'fred' ; $lastname = 'fox' ; $conn = cubrid_connect ( 'localhost' , 33000 , 'demodb' ); cubrid_execute ( $conn , "DROP TABLE if exists friends" ); cubrid_execute ( $conn , "create table friends(firstname va ...
https://man.mtool.work/php/8.3/function.cubrid-query.html
PREV 1 2 3 4 5 6 7 8 9 NEXT