text
stringlengths
1
254
output
stringlengths
2
255
Prev
fbsql_create_blob(), fbsql_read_blob(), fbsql_read_clob(), fbsql_set_lob_mode() も参照下さい。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
Example 1. fbsql_create_db() example
fbsql_create_db() は、指定したリンクIDが指すサー バ上に新規にデータベースを作成します。
Prev
例 1 fbsql_create_db() の例
fbsql_create_clob
fbsql_drop_db() も参照下さい。
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
The database password associated with the link identifier.
返り値: リンクIDにより表されるデータベースのデータベースパスワード
If no link identifier is specified, the last opened link is assumed.
fbsql_database_password() は、カレントのデータ ベースパスワードを設定または取得します。二番目のオプションのパラ メータが指定された場合、指定したリンクIDが指すサーバのパスワード のデータベースパスワードを設定します。リンクIDが指定されない場合、 直近にオープンされたリンクが仮定されます。リンクがオープンされて いない場合、この関数は、 fbsql_connect() がコー ルされた場合と同様にリンクを確立し、使用します。
See also: fbsql_connect(), fbsql_pconnect() and fbsql_select_db().
fbsql_connect() および fbsql_pconnect() も参照下さい。
Prev
(PHP 4 = 4.0.6)
Returns TRUE on success or FALSE on failure.
返り値: 成功時に TRUE 、失敗時に FALSE 。
The next call to fbsql_fetch_row() would return that row.
fbsql_data_seek() は、指定した結果IDが指す FrontBase結果の内部行ポインタを指定した行番号に移動します。 これ以降、 fbsql_fetch_row() をコールすると、そ の行が返されます。
Example 1. fbsql_data_seek() example
row_number は、0から始まります。
fbsql_database_password
例 1 fbsql_data_seek() の例
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
A positive FrontBase result identifier to the query result, or FALSE on error.
返り値: クエリ結果への正のFrontBase結果ID、またはエラー時には FALSE 。
If the optional link identifier isn' t specified, the function will try to find an open link to the FrontBase server and if no such link is found it'll try to create one as if fbsql_connect() was called with no arguments
fbsql_db_query() は、データベースを選択し、そこ でクエリを実行します。オプションのリンクIDが省略された場合、この 関数は、FrontBaseサーバへのリンクをオープンしようとし、 fbsql_connect() が引数無しでコールされた時と同 様にリンクを作成します。
Prev
fbsql_connect() も参照下さい。
(PHP 4 = 4.1.0)
(PHP 4 = 4.1.0)
An integer value with the current status.
返り値: カレントステータスを表す整数値
If the link_identifier is omitted the default link_identifier will be used.
fbsql_db_status() は、 database_name で指定したデータベースのカレ ントステータスを取得します。 link_identifier が省略された場合、デフォル トのlink_identifierが使用されます。
FALSE - The exec handler for the host was invalid.
返り値は、次の定数の1つとします。
FBExec can be available on the server but no connection has been made for it.
FALSE - hostが無効なexecハンドラ。このエラーは、 link_identifierがポート番号を用いてデータベースへ直接接続する 場合に発生します。FBExecはサーバで利用可能ですが、接続は行われ ていません。
FBSQL_STOPPED - The database is not running.
FBSQL_UNKNOWN - 未知のステータスです。
FBSQL_STARTING - The database is starting.
FBSQL_STOPPED - データベースは実行されていません。データベース を開始するには、 fbsql_start_db() を使用して 下さい。
FBSQL_STOPPING - The database is stopping.
FBSQL_STARTING - データベースは起動中です。
See also: fbsql_start_db() and fbsql_stop_db().
FBSQL_RUNNING - データベースは実行中で、SQL処理を実行可能です。
Home
FBSQL_STOPPING - データベースは停止中です。
fbsql_db_query
FBSQL_NOEXEC - FBExecはサーバで実行されておらず、データベース のステータスを取得することはできません。
fbsql_drop_db
fbsql_start_db() および fbsql_stop_db() も参照下さい。
Prev
(PHP 4 = 4.0.6)
Returns TRUE on success or FALSE on failure.
返り値: 成功時に TRUE 、失敗時に FALSE 。
Prev
fbsql_drop_db() は、指定したリンクIDが指すサー バからデータベース全体を破棄(削除)します。
Returns the error number from the last fbsql function, or 0 (zero) if no error occurred.
(PHP 4 = 4.0.6)
Instead, use fbsql_errno() to retrieve the error code.
Returns the error number from the last fbsql function, or 0 (zero) if no error occurred.
Prev
fbsql_error(), fbsql_warnings() も参照下さい。
Returns the error text from the last fbsql function, or '' (the empty string) if no error occurred.
(PHP 4 = 4.0.6)
Instead, use fbsql_error() to retrieve the error text.
Returns the error text from the last fbsql function, or ''(the empty string) if no error occurred.
Prev
See also: fbsql_errno(), fbsql_warnings()
Prev
(PHP 4 = 4.0.6)
Returns an array that corresponds to the fetched row, or FALSE if there are no more rows.
Returns an array that corresponds to the fetched row, or FALSE if there are no more rows.
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.
fbsql_fetch_array() is an extended version of fbsql_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.
To access the other column( s) of the same name, you must the numeric index of the column or make an alias for the column.
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 the numeric index of the column or make an alias for the column.
An important thing to note is that using fbsql_fetch_array() is NOT significantly slower than using fbsql_fetch_row(), while it provides a significant added value.
An important thing to note is that using fbsql_fetch_array() is NOT significantly slower than using fbsql_fetch_row(), while it provides a significant added value.
FBSQL_ASSOC, FBSQL_NUM, and FBSQL_BOTH.
The optional second argument result_type in fbsql_fetch_array() is a constant and can take the following values: FBSQL_ASSOC, FBSQL_NUM, and FBSQL_BOTH.
Example 1. fbsql_fetch_array() example
詳細については、 fbsql_fetch_row() および fbsql_fetch_assoc() も参照下さい。
fbsql_fetch_assoc
例 1 fbsql_fetch_array() の例
Returns an associative array that corresponds to the fetched row, or FALSE if there are no more rows.
(PHP 4 = 4.0.6)
It only returns an associative array.
Returns an associative array that corresponds to the fetched row, or FALSE if there are no more rows.
An important thing to note is that using fbsql_fetch_assoc() is NOT significantly slower than using fbsql_fetch_row(), while it provides a significant added value.
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 fbsql_fetch_array() and have it return the numeric indices as well.
Example 1. fbsql_fetch_assoc() example
An important thing to note is that using fbsql_fetch_assoc() is NOT significantly slower than using fbsql_fetch_row(), while it provides a significant added value.
Prev
詳細については、 fbsql_fetch_row() および fbsql_fetch_array() も参照下さい。
fbsql_fetch_array
例 1 fbsql_fetch_assoc() の例
Prev
(PHP 4 = 4.0.6)
Returns an object containing field information.
Returns an object containing field information.
If the field offset isn' t specified, the next field that wasn't yet retrieved by fbsql_fetch_field() is retrieved.
fbsql_fetch_field() can be used in order to obtain information about fields in a certain query result. If the field offset isn't specified, the next field that wasn't yet retrieved by fbsql_fetch_field() is retrieved.
name - column name
The properties of the object are:
fbsql_fetch_assoc
例 1 fbsql_fetch_field() の例
fbsql_fetch_lengths
fbsql_field_seek() も参照下さい。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
An array that corresponds to the lengths of each field in the last row fetched by fbsql_fetch_row(), or FALSE on error.
Returns: An array that corresponds to the lengths of each field in the last row fetched by fbsql_fetch_row(), or FALSE on error.
See also: fbsql_fetch_row().
fbsql_fetch_lengths() stores the lengths of each result column in the last row returned by fbsql_fetch_row(), fbsql_fetch_array(), and fbsql_fetch_object() in an array, starting at offset 0.
fbsql_fetch_field
See also: fbsql_fetch_row().
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
fbsql_fetch_object() is similar to fbsql_fetch_array(), with one difference - an object is returned, instead of an array.
Returns an object with properties that correspond to the fetched row, or FALSE if there are no more rows.
Speed-wise, the function is identical to fbsql_fetch_array(), and almost as quick as fbsql_fetch_row() (the difference is insignificant).
The optional argument result_type is a constant and can take the following values: FBSQL_ASSOC, FBSQL_NUM, and FBSQL_BOTH.
?php fbsql_connect ($host, $user, $password); $result = fbsql_db_query ("database", "select * from table"); while ($row = fbsql_fetch_object ($result)) {echo $row - user_id; echo $row - fullname;} fbsql_free_result ($result);?
Speed-wise, the function is identical to fbsql_fetch_array(), and almost as quick as fbsql_fetch_row() (the difference is insignificant).
Prev
例 1 fbsql_fetch_object() の例
fbsql_fetch_lengths
fbsql_fetch_array() および fbsql_fetch_row() も参照下さい。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
An array that corresponds to the fetched row, or FALSE if there are no more rows.
Returns: An array that corresponds to the fetched row, or FALSE if there are no more rows.
The row is returned as an array.
fbsql_fetch_row() fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0.
Subsequent call to fbsql_fetch_row() would return the next row in the result set, or FALSE if there are no more rows.
Subsequent call to fbsql_fetch_row() would return the next row in the result set, or FALSE if there are no more rows.
Prev
See also: fbsql_fetch_array(), fbsql_fetch_object(), fbsql_data_seek(), fbsql_fetch_lengths(), and fbsql_result().
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
The flags are reported as a single word per flag separated by a single space, so that you can split the returned value using explode().
fbsql_field_flags() returns the field flags of the specified field. The flags are reported as a single word per flag separated by a single space, so that you can split the returned value using explode().
Prev
(PHP 4 = 4.0.6)
fbsql_field_len() returns the length of the specified field.
fbsql_field_len() returns the length of the specified field.
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
fbsql_field_name() returns the name of the specified field index. result must be a valid result identifier and field_index is the numerical offset of the field.
fbsql_field_name() returns the name of the specified field index. result must be a valid result identifier and field_index is the numerical offset of the field.
The index of the third field would actually be 2, the index of the fourth field would be 3 and so on.
注意 field_index starts at 0.
Example 1. fbsql_field_name() example
e.g. The index of the third field would actually be 2, the index of the fourth field would be 3 and so on.
The above example would produce the following output:
例 1 fbsql_field_name() の例
Prev
上の例の出力は以下のようになります。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
If the next call to fbsql_fetch_field() doesn't include a field offset, the field offset specified in fbsql_field_seek() will be returned.
Seeks to the specified field offset. If the next call to fbsql_fetch_field() doesn't include a field offset, the field offset specified in fbsql_field_seek() will be returned.
Prev
See also: fbsql_fetch_field().
Prev
(PHP 4 = 4.0.6)
Returns the name of the table that the specified field is in.
Returns the name of the table that the specifed field is in.
fbsql_field_type() is similar to the fbsql_field_name() function.
(PHP 4 = 4.0.6)
The field type will be one of "int", "real", "string", "blob", and others as detailed in the FrontBase documentation.
fbsql_field_type() is similar to the fbsql_field_name() function. The arguments are identical, but the field type is returned instead. The field type will be one of "int", "real", "string", "blob", and others as detailed in the FrontBase documentation.
fbsql_field_table
例 1 fbsql_field_type() example
Prev
(PHP 4 = 4.0.6)
fbsql_free_result() will free all memory associated with the result identifier result.
fbsql_free_result() will free all memory associated with the result identifier result.
All associated result memory is automatically freed at the end of the script 's execution.
fbsql_free_result() only needs to be called if you are concerned about how much memory is being used for queries that return large result sets. All associated result memory is automatically freed at the end of the script's execution.
Warning
(PHP 4 = 4.1.0)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(PHP 4 = 4.0.6)