Results of 1 - 10 of about 18 for records (0.162 sec.)
- dbase_numrecords — Gets the number of records in a database | PHP 8.3 12302
- dbase_numrecords (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_numrecords — Gets the number of records in a database 説明 function dbase_numrecords ( resource $database ): int Gets the number of records (rows) in the specified database. 注意 : Records
... cords which are marked as deleted are counted as well. 注意 : Record numbers are between 1 and dbase_numrecords($db) , while field numbers are between 0 and dbase_numfields($db)-1 . パラメータ database The database resource, returned ... by dbase_open() or dbase_create() . 戻り値 The number of records in the database, or false if an error occurs. 変更履歴 バージョン 説明 PECL dbase 7.0.0 database is now a resource instead ... of an int . 例 例1 Looping over all the records of the database <?php // open in read-only mode $db = dbase_open ( '/tmp/test.dbf' , 0 ); if ( $db ) { $record_numbers = d ...
-
https://man.mtool.work/php/8.3/function.dbase-numrecords.html
- mysqli::$info — 直近に実行されたクエリの情報を取得する | PHP 8.3 10775
- mysqli::$info mysqli_info (PHP 5, PHP 7, PHP 8) mysqli::$info -- mysqli_info — 直近に実行されたクエリの情報を取得する 説明 オブジェクト指向型 ? string $mysqli->info ; 手続き型 function mysqli_info ( mysqli $mysql ): ? string mysqli_info() 関
... で返します。文字列の詳細は以下のとおりです。 mysqli_info のとりうる戻り値 クエリの型 結果文字列の例 INSERT INTO...SELECT... Records: 100 Duplicates: 0 Warnings: 0 INSERT INTO...VALUES (...),(...),(...) Records: 3 Duplicates: 0 Warnings: 0 LOAD DATA INFIL ... E ... Records: 1 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE ... Records: 3 Duplicates: 0 Warnings: 0 UPDATE ... Rows matched: 40 Chan ... O t1 SELECT * FROM City ORDER BY ID LIMIT 150" ); printf ( "%s\n" , mysqli_info ( $link )); 上の例の出力は以下となります。 Records: 150 Duplicates: 0 Warnings: 0 参考 mysqli_affected_rows() - 直前の MySQL の操作で変更された行の数を得る mysqli_warning_co ...
-
https://man.mtool.work/php/8.3/mysqli.info.html
- dBase | PHP 8.3 10655
- dBase はじめに 注意 : この拡張モジュールは » PECL レポジトリに移動 されており、以下のバージョン以降 PHP にバンドルされなくなっています。 PHP 5.3.0. These functions allow you to access records stored in dBase-format (dbf) databases. 警告 We
... implement the locks at the process level with multithreaded SAPIs. dBase files are simple sequential files of fixed length records. Records are appended to the end of the file and deleted records are kept until you call dbase_pack() . Only dbf file leve ... — Gets a record from a database as an associative array dbase_numfields — Gets the number of fields of a database dbase_numrecords — Gets the number of records in a database dbase_open — Opens a database dbase_pack — Packs a database dbase_replace_recor ...
-
https://man.mtool.work/php/8.3/book.dbase.html
- mysql_affected_rows — 一番最近の操作で変更された行の数を得る | PHP 8.3 10329
- mysql_affected_rows (PHP 4, PHP 5) mysql_affected_rows — 一番最近の操作で変更された行の数を得る 警告 この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。 MySQLi あるいは PDO_MySQL を使うべきです。詳細な情報は MySQL: A
... ' ); /* これは、削除されたレコードの正しい数をかえずはず */ mysql_query ( 'DELETE FROM mytable WHERE id < 10' ); printf ( "Records deleted: %d\n" , mysql_affected_rows ()); /* 決して真にはならない where 条件なので、結果は 0 となるはず */ mysql_query ( ' ... DELETE FROM mytable WHERE 0' ); printf ( "Records deleted: %d\n" , mysql_affected_rows ()); ?> 上の例の出力は、 たとえば以下のようになります。 Records deleted: 10 Records d ... ql_select_db ( 'mydb' ); /* レコードの更新 */ mysql_query ( "UPDATE mytable SET used=1 WHERE id < 10" ); printf ( "Updated records: %d\n" , mysql_affected_rows ()); mysql_query ( "COMMIT" ); ?> 上の例の出力は、 たとえば以下のようになります。 Updated Rec ...
-
https://man.mtool.work/php/8.3/function.mysql-affected-rows.html
- pg_get_result — 非同期クエリの結果を取得する | PHP 8.3 9900
- pg_get_result (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_get_result — 非同期クエリの結果を取得する 説明 function pg_get_result ( PgSql\Connection $connection ): PgSql\Result | false pg_get_result() は、 pg_send_query() , pg_send_query_params(
... sult ( $dbconn ); echo "First call to pg_get_result(): $res1 \n" ; $rows1 = pg_num_rows ( $res1 ); echo " $res1 has $rows1 records\n\n" ; $res2 = pg_get_result ( $dbconn ); echo "Second call to pg_get_result(): $res2 \n" ; $rows2 = pg_num_rows ( $res2 ) ... ; echo " $res2 has $rows2 records\n" ; ?> 上の例の出力は以下となります。 First call to pg_get_result(): Resource id #3 Resource id #3 has 3 records Second c ... all to pg_get_result(): Resource id #4 Resource id #4 has 1 records 参考 pg_send_query() - 非同期クエリを送信する 他のマニュアルの関連ページ Django instrumentation DuckDB PostgreSQL Extensio ...
-
https://man.mtool.work/php/8.3/function.pg-get-result.html
- mysql_info — 直近のクエリについての情報を得る | PHP 8.3 9780
- mysql_info (PHP 4 >= 4.3.0, PHP 5) mysql_info — 直近のクエリについての情報を得る 警告 この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。 MySQLi あるいは PDO_MySQL を使うべきです。詳細な情報は MySQL: API の選択 を参照
... の例です。数値はあくまで説明用の例で、実際の値は クエリの内容によって変わります。 INSERT INTO ... SELECT ... String format: Records: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... String format: Records: 37 Duplicates: 0 Warning ... s: 0 LOAD DATA INFILE ... String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE String format: Records: 60 Duplicates: 0 Warnings: 0 UPDATE String forma ...
-
https://man.mtool.work/php/8.3/function.mysql-info.html
- pg_send_query — 非同期クエリを送信する | PHP 8.3 9351
- pg_send_query (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_send_query — 非同期クエリを送信する 説明 function pg_send_query ( PgSql\Connection $connection , string $query ): int | bool pg_send_query() は、 connection に非同期クエリを送信します。
... sult ( $dbconn ); echo "First call to pg_get_result(): $res1 \n" ; $rows1 = pg_num_rows ( $res1 ); echo " $res1 has $rows1 records\n\n" ; $res2 = pg_get_result ( $dbconn ); echo "Second call to pg_get_result(): $res2 \n" ; $rows2 = pg_num_rows ( $res2 ) ... ; echo " $res2 has $rows2 records\n" ; ?> 上の例の出力は以下となります。 First call to pg_get_result(): Resource id #3 Resource id #3 has 3 records Second c ... all to pg_get_result(): Resource id #4 Resource id #4 has 1 records 参考 pg_query() - クエリを実行する pg_cancel_query() - 非同期クエリを取り消す pg_get_result() - 非同期クエリの結果を取得す ...
-
https://man.mtool.work/php/8.3/function.pg-send-query.html
- array_column — 入力配列から単一のカラムの値を返す | PHP 8.3 9025
- array_column (PHP 5 >= 5.5.0, PHP 7, PHP 8) array_column — 入力配列から単一のカラムの値を返す 説明 function array_column ( array $array , int | string | null $column_key , int | string | null $index_key = null ): array array_column() は、 配
... ようになりました。 例 例1 レコードセットからのファーストネームの取得 <?php // データベースから返ってきたレコードセットの例 $records = [ [ 'id' => 2135 , 'first_name' => 'John' , 'last_name' => 'Doe' , ], [ 'id' => 3245 , 'first_name' => 'Sally' , 'last_n ... ame' => 'Jones' , ], [ 'id' => 5623 , 'first_name' => 'Peter' , 'last_name' => 'Doe' , ] ]; $first_names = array_column ( $records , 'first_name' ); print_r ( $first_names ); ?> 上の例の出力は以下となります。 Array ( [0] => John [1] => Sally [2] => Jane ... [3] => Peter ) 例2 レコードセットから姓を取得し、"id"で並べ替える例 <?php // 先ほどの例と同じ $records 配列を使います $records = [ [ 'id' => 2135 , 'first_name' => 'John' , 'last_name' => 'Doe' , ], [ 'id' => 3245 , 'first_na ...
-
https://man.mtool.work/php/8.3/function.array-column.html
- dns_get_record — ホスト名に関連する DNS リソースレコードを取得する | PHP 8.3 8030
- dns_get_record (PHP 5, PHP 7, PHP 8) dns_get_record — ホスト名に関連する DNS リソースレコードを取得する 説明 function dns_get_record ( string $hostname , int $type = DNS_ANY , array &$authoritative_name_servers = null , array &$additional_records
... 。 authoritative_name_servers リファレンスで渡し、 Authoritative Name Servers のリソースレコードが格納されます。 additional_records リファレンスで渡し、 Additional Records が格納されます。 raw type は生のDNSのタイプIDとして解釈されます。 ( DNS_ * 定数は使 ... ドが解決されれば、たいていはメールサーバーの IP アドレスを 取得したくなるものです。そのため、 dns_get_record() は additional_records に関連するレコードを含めて返します。 また、 authoritative_name_servers には 権威のあるネームサーバーのリストを含めて返しま ...
-
https://man.mtool.work/php/8.3/function.dns-get-record.html
- pg_cancel_query — 非同期クエリを取り消す | PHP 8.3 8030
- pg_cancel_query (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_cancel_query — 非同期クエリを取り消す 説明 function pg_cancel_query ( PgSql\Connection $connection ): bool pg_cancel_query() は、 pg_send_query() ・ pg_send_query_params() あるいは pg
... sult ( $dbconn ); echo "First call to pg_get_result(): $res1 \n" ; $rows1 = pg_num_rows ( $res1 ); echo " $res1 has $rows1 records\n\n" ; // 実行中のクエリをキャンセルする。もしまだ実行中なら、2 番目のクエリが // 対象となるだろう。 pg_cancel_query ( $db ... conn ); ?> 上の例の出力は以下となります。 First call to pg_get_result(): Resource id #3 Resource id #3 has 3 records 参考 pg_send_query() - 非同期クエリを送信する pg_connection_busy() - 接続がビジーかどうか調べる 他のマニュアルの関連ページ ...
-
https://man.mtool.work/php/8.3/function.pg-cancel-query.html