NPO法人の設立はお任せ下さい

NPO法人とはという基本的内容から実際のNPO法人設立まで広くお手伝いいたします。これからNPO法人をお考えの方はオススメ。NPO法人とはNon Profit Organizationの略であり、特定非営利活動法人を指します。法人なので当然に登記され、独立した人格として活動ができるようになります。

アルバイトをお探しならアルバイトスタイルへ。アルバイトを探したい方、アルバイトを探している方は必見です。
NPO法人をこれから設立したいとお考えなら自分で設立するNPO法人へ。都道府県ごとのNPO法人設立情報などを提供。NPO法人証明書も発行
株式会社をこれから設立したいとお考えなら会社設立webへ。都道府県ごとの会社設立専門家を紹介しております。

MDB_Common::executeQuery()

MDB_Common::executeQuery() -- executes a prepared SQL statment

概要

require_once 'MDB.php';

mixed executeQuery (resource $stmt, array [$types = NULL])

説明

executeQuery() joins the prepared SQL statment from prepareQuery() with the data that was set using one of the setParam() methods and executes the SQL query.

パラメータ

resource $stmt

query handle from prepareQuery()

array $types

if supplied, the types of the columns in the result set will be set for fetching

返り値

mixed - a resource id/MDB_OK or a MDB_Error, if fail

例外・エラー

表 33-1PEAR_Error の値

Error codeError messageReasonSolution
MDB_ERROR_INVALID NULL SQL statment handle is not valid. Check correct processing of the SQL statment with prepareQuery() . Note that executeQuery() requires a handle to the statement returned by prepareQuery() , not the statment itself.
MDB_ERROR_NEED_MORE_DATA NULL To less data for filling the prepared SQL statment. Check the number of wild cards given in the SQL statment for prepareQuery() . Check the count of entries in the array for $data. The count of entries have to be equal to the number of wild cards.
MDB_ERROR_NO_DB_SELECTED NULL No database was choosen. Check the DSN in connect() .
every other error code  Database specific error Check the database related section of PHP-Manual to detect the reason for this error. In the most cases a misformed SQL statment. Ie. using LIMIT in a SQL-Statment for an Oracle database.

注意

この関数は、スタティックにコールする ことはできません。

See Introduction - Execute for general using and an example.

参照

prepareQuery() , executeMultiple()