Index: phpdoc/ja/functions/ingres_ii.xml
diff -u phpdoc/ja/functions/ingres_ii.xml:1.2 phpdoc/ja/functions/ingres_ii.xml:1.3
--- phpdoc/ja/functions/ingres_ii.xml:1.2 Sun Nov 26 04:47:20 2000
+++ phpdoc/ja/functions/ingres_ii.xml Mon Nov 27 05:57:37 2000
@@ -320,36 +320,34 @@
- For delete, insert or update queries,
- ingres_num_rows returns the number of rows
- affected by the query. For other queries,
- ingres_num_rows returns the number of rows
- in the query's result.
+ delete, insert, update クエリの場合、
+ ingres_num_rows は、そのクエリにより作用され
+ た行(レコード)の数を返します。その他のクエリの場合、
+ ingres_num_rows はクエリ結果のレコード数を返
+ します。
- This function is mainly meant to get the number of rows
- modified in the database.
- If this function is called before using
- ingres_fetch_array,
- ingres_fetch_object or
- ingres_fetch_row the server will delete
- the result's data and the script won't be able to get them.
+ この関数は、主にデータベースで修正されたレコードの数を得る際に
+ 有用です。この関数が ingres_fetch_array、
+ ingres_fetch_object、
+ ingres_fetch_row を使用する前にコールされ
+ た場合、サーバは結果のデータを削除し、スクリプトは結果を得るこ
+ とができなくなります。
- You should instead retrieve the result's data using one of these
- fetch functions in a loop until it returns false, indicating that
- no more results are available.
+ 代わりにこれらの取得用関数のどれかをもう結果が残っていないとい
+ う意味で false を返すまでループ処理を行い、結果のデータを取得す
+ る必要があります。
- See also
- ingres_query,
- ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_query、
+ ingres_fetch_array、
+ ingres_fetch_object、
+ ingres_fetch_row も参照下さい。
@@ -372,16 +370,15 @@
- ingres_num_fields returns the number of fields
- in the results returned by the Ingres server after a call to
- ingres_query
+ ingres_num_fields は、
+ ingres_query をコールした後で、Ingres サーバ
+ により返された結果のフィールド数を返します。
- See also
- ingres_query,
- ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_query、
+ ingres_fetch_array、
+ ingres_fetch_object、
+ ingres_fetch_row も参照下さい。
@@ -396,29 +393,26 @@
stringingres_field_name
- int
- index
-
+ int indexresource
link
- ingres_field_name returns the name of a field
- in a query result, or false on failure.
+ ingres_field_name は、クエリ結果の場合はフィー
+ ルド名、失敗した場合は false を返します。
- index is the number of the field and must be
- between 1 and the value given by
- ingres_num_fields.
+ index はフィールド番号であり、1 と
+ ingres_num_fields で指定した値の間である必要
+ があります。
- See also
- ingres_query,
- ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_query、
+ ingres_fetch_array、
+ ingres_fetch_object、
+ ingres_fetch_row も参照下さい。
@@ -441,28 +435,27 @@
+
+ ingres_field_type はクエリ結果のフィールド型、
+ 失敗した場合は、false を返します。返される型は、例えば、
+ "IIAPI_BYTE_TYPE", "IIAPI_CHA_TYPE", "IIAPI_DTE_TYPE",
+ "IIAPI_FLT_TYPE", "IIAPI_INT_TYPE", "IIAPI_VCH_TYPE" になります。
+ これらの型のいくつかは、フィールド長に応じて複数のSQL型をマップす
+ ることが可能です(ingres_field_lengthを参照
+ 下さい)。例えば、"IIAPI_FLT_TYPE" は、float4 または float8 とする
+ ことが可能です。詳細な情報については、Ingres/OpenAPI User Guide
+ の Appendix C を参照下さい。
+
- ingres_field_type returns the type of a field
- in a query result, or false on failure.
- Examples of types returned are "IIAPI_BYTE_TYPE",
- "IIAPI_CHA_TYPE", "IIAPI_DTE_TYPE", "IIAPI_FLT_TYPE",
- "IIAPI_INT_TYPE", "IIAPI_VCH_TYPE". Some of these types can map
- to more than one SQL type depending on the length of the field
- (see ingres_field_length). For example
- "IIAPI_FLT_TYPE" can be a float4 or a float8. For detailed
- information, see the Ingres/OpenAPI User Guide - Appendix C.
-
-
- index is the number of the field and must be
- between 1 and the value given by
- ingres_num_fields.
+ index はフィールド番号であり、1と
+ ingres_num_fields で指定した値の間である必要
+ があります。
- See also
ingres_query,
ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_fetch_object,
+ ingres_fetch_row も参照下さい。
@@ -486,20 +479,19 @@
- ingres_field_nullable returns true if the field
- can be set to the NULL value and false if it can't.
+ ingres_field_nullable は、フィールドにNULLが
+ 設定可能な場合に true、設定できない場合に false を返します。
- index is the number of the field and must be
- between 1 and the value given by
- ingres_num_fields.
+ index はフィールド番号であり、1 と
+ ingres_num_fields で指定した値の間である必要
+ があります。
- See also
ingres_query,
ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_fetch_object,
+ ingres_fetch_row も参照下さい。
@@ -523,21 +515,21 @@
- ingres_field_length returns the length of a field.
- This is the number of bytes used by the server to store the field.
- For detailed information, see the Ingres/OpenAPI User Guide - Appendix C.
+ ingres_field_length はフィールド長を返します。
+ フィールド長は、フィールドをサーバに保存する際に使用されるバイト
+ 数です。詳細な情報については、Ingres/OpenAPI User Guide の
+ Appendix C を参照下さい。
- index is the number of the field and must be
- between 1 and the value given by
- ingres_num_fields.
+ index はフィールド番号であり、1 と
+ ingres_num_fields で指定した値の間である必要
+ があります。
- See also
ingres_query,
ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_fetch_object,
+ ingres_fetch_row も参照下さい。
@@ -561,22 +553,21 @@
- ingres_field_precision returns the precision of
- a field. This value is used only for decimal, float and money SQL data
- types. For detailed information, see the Ingres/OpenAPI User Guide -
- Appendix C.
+ ingres_field_precision はフィールドの精度を
+ 返します。この値は、decimal、float、SQLデータ money 型でのみ使用
+ されます。詳細な情報については、Ingres/OpenAPI User Guide の
+ Appendix C を参照下さい。
- index is the number of the field and must be
- between 1 and the value given by
- ingres_num_fields.
+ index はフィールド番号であり、1 と
+ ingres_num_fields で指定した値の間である必要
+ があります。
- See also
ingres_query,
ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_fetch_object,
+ ingres_fetch_row も参照下さい。
@@ -591,30 +582,28 @@
intingres_field_scale
- int
- index
-
+ int indexresource
link
- ingres_field_scale returns the scale of a field.
- This value is used only for the decimal SQL data type. For detailed
- information, see the Ingres/OpenAPI User Guide - Appendix C.
+ ingres_field_scale はフィールドのスケールを
+ 返します。この値は、SQLデータ decimal 型でのみ使用されます。詳細
+ な情報については、Ingres/OpenAPI User Guide の Appendix C を参照
+ 下さい。
- index is the number of the field and must be
- between 1 and the value given by
- ingres_num_fields.
+ index はフィールド番号であり、1 と
+ ingres_num_fields で指定した値の間である必要
+ があります。
- See also
ingres_query,
ingres_fetch_array,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_fetch_object,
+ ingres_fetch_row も参照下さい。
@@ -638,23 +627,23 @@
- ingres_fetch_array Returns an array that corresponds
- to the fetched row, or false if there are no more rows.
+ ingres_fetch_array は、取得したレコード(行)
+ に対応する配列を返します。レコードがもうない場合は false を返しま
+ す。
- This function is an extended version of
- ingres_fetch_row. In addition to storing the
- data in the numeric indices of the result array, it also stores
- the data in associative indices, using the field names as keys.
+ この関数は、ingres_fetch_row の拡張版です。
+ 結果として返される配列の数値添字にデータを保存するだけでなく、フィー
+ ルド名をキーとして連想配列にもデータが保存されます。
- If two or more columns of the result have the same field names,
- the last column will take precedence. To access the other column(s)
- of the same name, you must use the numeric index of the column or
- make an alias for the column.
+ 結果において複数のカラムが同じフィールド名を有している場合、後の
+ カラムが優先されます。同名の他のカラムにアクセスするには、カラム
+ の添字番号を使用するか、カラムのエイリアスを作成する必要がありま
+ す。
-
-ingres_query(select t1.f1 as foo t2.f1 as bar from t1, t2);
+
+ingres_query (select t1.f1 as foo t2.f1 as bar from t1, t2);
$result = ingres_fetch_array();
$foo = $result["foo"];
$bar = $result["bar"];
@@ -662,14 +651,14 @@
- result_type can be II_NUM for enumerated array,
- II_ASSOC for associative array, or II_BOTH (default).
+ result_type には、数値添字の場合に II_NUM、
+ 連想配列の場合に II_ASSOC、両方の場合に II_BOTH (デフォルト)を指
+ 定可能です。
- Speed-wise, the function is identical to
- ingres_fetch_object, and almost as quick as
- ingres_fetch_row (the difference is
- insignificant).
+ 速度面では、この関数はingres_fetch_object
+ と同じで、ingres_fetch_row とほぼ同等です(差
+ は僅かです)。
@@ -680,9 +669,9 @@
ingres_query ("select * from table");
while ($row = ingres_fetch_array()) {
- echo $row["user_id"]; # using associative array
+ echo $row["user_id"]; # 連想配列を使用する
echo $row["fullname"];
- echo $row[1]; # using enumerated array
+ echo $row[1]; # 数値添字配列を使用する
echo $row[2];
}
?>
@@ -690,12 +679,11 @@
- See also
ingres_query,
ingres_num_fields,
ingres_field_name,
- ingres_fetch_object and
- ingres_fetch_row.
+ ingres_fetch_object,
+ ingres_fetch_row も参照下さい。
@@ -716,18 +704,18 @@
- ingres_fetch_row returns an array that corresponds
- to the fetched row, or false if there are no more rows. Each result
- column is stored in an array offset, starting at offset 1.
+ ingres_fetch_row は取得したレコード(行)を有
+ する配列を返します。レコードがもうない場合は false を返します。各
+ カラムは、オフセット1から始まる配列オフセットに保存されます。
- Subsequent call to ingres_fetch_row would
- return the next row in the result set, or false if there are no
- more rows.
+ ingres_fetch_row を連続的にコールした場合、
+ 結果集合の中の次のレコードが返され、もうレコードがない場合はfalse
+ を返します。
- ingres_fetch_row example
+ ingres_fetch_row の例
<?php
ingres_connect ($database, $user, $password);
@@ -742,11 +730,10 @@
- See also
ingres_num_fields,
ingres_query,
- ingres_fetch_array and
- ingres_fetch_object.
+ ingres_fetch_array,
+ ingres_fetch_objectも参照下さい。
@@ -770,30 +757,30 @@
- ingres_fetch_object Returns an object that
- corresponds to the fetched row, or false if there are no more rows.
+ ingres_fetch_object は取得したレコード(行)を
+ オブジェクトとして返します。レコードがもうない場合は false を返し
+ ます。
-
- This function is similar to
- ingres_fetch_array, with one difference - an
- object is returned, instead of an array. Indirectly, that means
- that you can only access the data by the field names, and not by
- their offsets (numbers are illegal property names).
-
-
- The optional argument result_type is a
- constant and can take the following values: II_ASSOC,
- II_NUM, and II_BOTH.
-
-
- Speed-wise, the function is identical to
- ingres_fetch_array, and almost as quick as
- ingres_fetch_row (the difference is
- insignificant).
+
+ この関数は ingres_fetch_array に似ていますが、
+ 配列の代わりにオブジェクトが返されるという違いが一つあります。間
+ 接的なアクセス、つまり、オフセットではなくフィールド名によりデー
+ タをアクセスすることのみが可能です(数値はプロパティ名としては使用
+ できません)。
+ オプションの引数 result_type は定数であり、
+ 次の値のどれかとなります: II_ASSOC,
+ II_NUM, II_BOTH
+
+
+ 速度の面では、この関数は ingres_fetch_array
+ と等価であり、ingres_fetch_row とほぼ同等で
+ す(違いは僅かです)。
+
+
- ingres_fetch_object example
+ ingres_fetch_object の例
<?php
ingres_connect ($database, $user, $password);
@@ -807,12 +794,11 @@
- See also
ingres_query,
ingres_num_fields,
ingres_field_name,
- ingres_fetch_array and
- ingres_fetch_row.
+ ingres_fetch_array,
+ ingres_fetch_row も参照下さい。
@@ -833,19 +819,19 @@
- ingres_rollback rolls back the currently open
- transaction, actualy canceling all changes made to the database
- during the transaction.
+ ingres_rollback は現在オープンされているトラ
+ ンザクションをロールバックし、トランザクションの間にデータベース
+ に行われた全ての変更をキャンセルします。
- This closes the transaction. A new one can be open by sending a
- query with ingres_query.
+ この関数は、トランザクションをクローズします。
+ ingres_query によりクエリを送信することによ
+ り、新規のトランザクションをオープンすることが可能です。
- See also
ingres_query,
- ingres_commit and
- ingres_autocommit.
+ ingres_commit,
+ ingres_autocommit も参照下さい。
@@ -866,23 +852,23 @@
- ingres_commit commits the currently open
- transaction, making all changes made to the database permanent.
+ ingres_commit は現在オープンされているトラン
+ ザクションをオープンし、全ての変更をデータベースに保存します。
- This closes the transaction. A new one can be open by sending a
- query with ingres_query.
+ この関数はトランザクションをクローズします。
+ ingres_query によりクエリを送信することによ
+ り、新規のトランザクションをオープンすることが可能です。
- You can also have the server commit automaticaly after every query
- by calling ingres_autocommit before opening the
- transaction.
+ トランザクションをオープンする前に
+ ingres_autocommit をコールすることにより、各
+ クエリの後に自動的にサーバ側でコミットを行うことも可能です。
- See also
ingres_query,
- ingres_rollback and
- ingres_autocommit.
+ ingres_rollback,
+ ingres_autocommitも参照下さい。
@@ -903,23 +889,23 @@
- ingres_autocommit is called before opening a
- transaction (before the first call to ingres_query
- or just after a call to ingres_rollback or
- ingres_autocommit) to switch the "autocommit" mode
- of the server on or off (when the script begins the autocommit mode is
- off).
+ ingres_autocommit は、サーバの "autocommit"
+ モードをオンまたはオフに切替えるために、トランザクションをオープ
+ ンする前(最初にingres_queryをコールする前ま
+ たはingres_rollbackまたは
+ ingres_autocommitをコールした直後)にコールさ
+ れます(スクリプトの実行開始には、autocommitモードはオフです)。
- When the autocommit mode is on, every query is automaticaly commited
- by the server, as if ingres_commit was called
- after every call to ingres_query.
+ autocommit モードがオンの場合、各クエリはサーバにより自動的にコミッ
+ トされます。これは、ingres_query をコールし
+ た後に常に ingres_commit をコールすることと
+ 等価です。
- See also
ingres_query,
- ingres_rollback and
- ingres_commit.
+ ingres_rollback,
+ ingres_commitも参照下さい。