<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/set.mysqlinfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'book.mysql.php',
    1 => 'MySQL (最初の API)',
    2 => '最初の MySQL API',
  ),
  'up' => 
  array (
    0 => 'set.mysqlinfo.php',
    1 => 'MySQL',
  ),
  'prev' => 
  array (
    0 => 'mysql-xdevapi-warning.construct.php',
    1 => 'Warning::__construct',
  ),
  'next' => 
  array (
    0 => 'mysql.setup.php',
    1 => 'インストール/設定',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mysql/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.mysql.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.mysql" class="book">
 
 <h1 class="title">最初の MySQL API</h1>
 

 
 <div id="intro.mysql" class="preface">
  <h1 class="title">はじめに</h1>
  <p class="simpara">
   この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。
   新しくコードを書くときには <a href="book.mysqli.php" class="link">mysqli</a> や
   <a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a> を使うべきです。
   <a href="mysqlinfo.api.choosing.php" class="link">MySQL API
   Overview</a> が、MySQL API を選択する際の参考となります。
  </p>
  <p class="simpara">
   以下の関数は、MySQL データベースサーバーへのアクセスを可能にします。
   MySQL に関するより詳細な情報は、
   <a href="http://www.mysql.com/" class="link external">&raquo;&nbsp;http://www.mysql.com/</a> にあります。
  </p>
  <p class="simpara">
   MySQL のドキュメントは、<a href="http://dev.mysql.com/doc/" class="link external">&raquo;&nbsp;http://dev.mysql.com/doc/</a>にあります。
  </p>
 </div>
 

 






 





 






 









 







<ul class="chunklist chunklist_book"><li><a href="mysql.setup.php">インストール/設定</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="mysql.requirements.php">要件</a></li><li><a href="mysql.installation.php">インストール手順</a></li><li><a href="mysql.configuration.php">実行時設定</a></li><li><a href="mysql.resources.php">リソース型</a></li></ul></li><li><a href="changelog.mysql.php">変更履歴</a></li><li><a href="mysql.constants.php">定義済み定数</a></li><li><a href="mysql.examples.php">例</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="mysql.examples-basic.php">MySQL 拡張モジュールの概要を示す例</a></li></ul></li><li><a href="ref.mysql.php">MySQL 関数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.mysql-affected-rows.php">mysql_affected_rows</a> — 一番最近の操作で変更された行の数を得る</li><li><a href="function.mysql-client-encoding.php">mysql_client_encoding</a> — 文字セット名を返す</li><li><a href="function.mysql-close.php">mysql_close</a> — MySQL 接続を閉じる</li><li><a href="function.mysql-connect.php">mysql_connect</a> — MySQL サーバーへの接続をオープンする</li><li><a href="function.mysql-create-db.php">mysql_create_db</a> — MySQL データベースを作成する</li><li><a href="function.mysql-data-seek.php">mysql_data_seek</a> — 内部的な結果ポインタを移動する</li><li><a href="function.mysql-db-name.php">mysql_db_name</a> — mysql_list_dbs のコール結果からデータベース名を取得する</li><li><a href="function.mysql-db-query.php">mysql_db_query</a> — データベースを選択し、そこでクエリーを実行する</li><li><a href="function.mysql-drop-db.php">mysql_drop_db</a> — MySQLデータベースを破棄(削除)する</li><li><a href="function.mysql-errno.php">mysql_errno</a> — 直近の MySQL 処理からエラーメッセージのエラー番号を返す</li><li><a href="function.mysql-error.php">mysql_error</a> — 直近に実行された MySQL 操作のエラーメッセージを返す</li><li><a href="function.mysql-escape-string.php">mysql_escape_string</a> — mysql_query で使用するために文字列をエスケープする</li><li><a href="function.mysql-fetch-array.php">mysql_fetch_array</a> — 連想配列、添字配列、またはその両方として結果の行を取得する</li><li><a href="function.mysql-fetch-assoc.php">mysql_fetch_assoc</a> — 連想配列として結果の行を取得する</li><li><a href="function.mysql-fetch-field.php">mysql_fetch_field</a> — 結果からカラム情報を取得し、オブジェクトとして返す</li><li><a href="function.mysql-fetch-lengths.php">mysql_fetch_lengths</a> — 結果における各出力の長さを得る</li><li><a href="function.mysql-fetch-object.php">mysql_fetch_object</a> — 結果の行をオブジェクトとして取得する</li><li><a href="function.mysql-fetch-row.php">mysql_fetch_row</a> — 結果を添字配列として取得する</li><li><a href="function.mysql-field-flags.php">mysql_field_flags</a> — 結果において指定したフィールドのフラグを取得する</li><li><a href="function.mysql-field-len.php">mysql_field_len</a> — 指定したフィールドの長さを返す</li><li><a href="function.mysql-field-name.php">mysql_field_name</a> — 結果において指定したフィールド名を取得する</li><li><a href="function.mysql-field-seek.php">mysql_field_seek</a> — 結果ポインタを指定したフィールドオフセットにセットする</li><li><a href="function.mysql-field-table.php">mysql_field_table</a> — 指定したフィールドが含まれるテーブルの名前を取得する</li><li><a href="function.mysql-field-type.php">mysql_field_type</a> — 結果において指定したフィールドの型を取得する</li><li><a href="function.mysql-free-result.php">mysql_free_result</a> — 結果保持用メモリを開放する</li><li><a href="function.mysql-get-client-info.php">mysql_get_client_info</a> — MySQL クライアント情報を取得する</li><li><a href="function.mysql-get-host-info.php">mysql_get_host_info</a> — MySQL ホスト情報を取得する</li><li><a href="function.mysql-get-proto-info.php">mysql_get_proto_info</a> — MySQL プロトコル情報を取得する</li><li><a href="function.mysql-get-server-info.php">mysql_get_server_info</a> — MySQL サーバー情報を取得する</li><li><a href="function.mysql-info.php">mysql_info</a> — 直近のクエリについての情報を得る</li><li><a href="function.mysql-insert-id.php">mysql_insert_id</a> — 直近のクエリで生成された ID を得る</li><li><a href="function.mysql-list-dbs.php">mysql_list_dbs</a> — MySQL サーバー上で利用可能なデータベースのリストを得る</li><li><a href="function.mysql-list-fields.php">mysql_list_fields</a> — MySQL テーブルのフィールドのリストを得る</li><li><a href="function.mysql-list-processes.php">mysql_list_processes</a> — MySQL プロセスのリストを得る</li><li><a href="function.mysql-list-tables.php">mysql_list_tables</a> — MySQL データベース上のテーブルのリストを得る</li><li><a href="function.mysql-num-fields.php">mysql_num_fields</a> — 結果におけるフィールドの数を得る</li><li><a href="function.mysql-num-rows.php">mysql_num_rows</a> — 結果における行の数を得る</li><li><a href="function.mysql-pconnect.php">mysql_pconnect</a> — MySQL サーバーへの持続的な接続をオープンする</li><li><a href="function.mysql-ping.php">mysql_ping</a> — サーバーとの接続状況を調べ、接続されていない場合は再接続する</li><li><a href="function.mysql-query.php">mysql_query</a> — MySQL クエリを送信する</li><li><a href="function.mysql-real-escape-string.php">mysql_real_escape_string</a> — SQL 文中で用いる文字列の特殊文字をエスケープする</li><li><a href="function.mysql-result.php">mysql_result</a> — 結果データを得る</li><li><a href="function.mysql-select-db.php">mysql_select_db</a> — MySQL データベースを選択する</li><li><a href="function.mysql-set-charset.php">mysql_set_charset</a> — クライアントの文字セットを設定する</li><li><a href="function.mysql-stat.php">mysql_stat</a> — 現在のシステムの状態を取得する</li><li><a href="function.mysql-tablename.php">mysql_tablename</a> — フィールドのテーブル名を得る</li><li><a href="function.mysql-thread-id.php">mysql_thread_id</a> — カレントのスレッド ID を返す</li><li><a href="function.mysql-unbuffered-query.php">mysql_unbuffered_query</a> — MySQL に SQL クエリを送信するが、結果に対してのフェッチやバッファリングは行わない</li></ul></li></ul></div><?php manual_footer($setup); ?>