Results of 1 - 10 of about 17 for sth (0.004 sec.)
- プリペアドステートメントを実行する 11707
- « PDOStatement::errorInfo PDOStatement::fetch » PHP Manual PDOStatement プリペアドステートメント
...
メントの実行 */ $calories = 150 ; $colour = 'gre' ; $sth = $dbh -> prepare ( 'SELECT name, colour, calories ...
calories < :calories AND colour LIKE :colour' ); $sth -> bindParam ( 'calories' , $calories , PDO :: PAR ...
、コロン ":" を付けることができます(オプション) */ $sth -> bindValue ( ':colour' , "% $colour %" ); $sth - ...
メントの実行 */ $calories = 150 ; $colour = 'red' ; $sth = $dbh -> prepare ( 'SELECT name, colour, calories ...
-
https://man.plustar.jp/php/pdostatement.execute.html
- [similar]
- 文を実行する準備を行い、文オブジェクトを返す 10931
- « PDO::lastInsertId PDO::query » PHP Manual PDO 文を実行する準備を行い、文オブジェクトを返す PDO
...
HERE calories < :calories AND colour = :colour' ; $sth = $dbh -> prepare ( $sql , array( PDO :: ATTR_CURS ...
OR => PDO :: CURSOR_FWDONLY )); $sth -> execute (array( 'calories' => 150 , 'colour' => ...
'red' )); $red = $sth -> fetchAll (); /* 配列のキーの前にも、コロン ":" ...
を付けることができます(オプション) */ $sth -> execute (array( ':calories' => 175 , ':colour' ...
-
https://man.plustar.jp/php/pdo.prepare.html
- [similar]
- 結果セットから、残っている行を取得する 10724
- « PDOStatement::fetch PDOStatement::fetchColumn » PHP Manual PDOStatement 結果セットから、残って
...
結果セットに残っている全ての行をフェッチする <?php $sth = $dbh -> prepare ( "SELECT name, colour FROM frui ...
t" ); $sth -> execute (); /* 結果セットに残っている全ての行を ...
remaining rows in the result set:\n" ); $result = $sth -> fetchAll (); print_r ( $result ); ?> 上の例の出 ...
ラムの全ての値を取得するかを 例示しています。 <?php $sth = $dbh -> prepare ( "SELECT name, colour FROM frui ...
-
https://man.plustar.jp/php/pdostatement.fetchall.html
- [similar]
- 指定された変数名にパラメータをバインドする 10604
- « PDOStatement::bindColumn PDOStatement::bindValue » PHP Manual PDOStatement 指定された変数名にパ
...
トを実行する */ $calories = 150 ; $colour = 'red' ; $sth = $dbh -> prepare ( 'SELECT name, colour, calories ...
ERE calories < :calories AND colour = :colour' ); $sth -> bindParam ( 'calories' , $calories , PDO :: PAR ...
、コロン ":" を付けることができます(オプション) */ $sth -> bindParam ( ':colour' , $colour , PDO :: PARAM_ ...
STR ); $sth -> execute (); ?> 例2 疑問符プレースホルダを用いて ...
-
https://man.plustar.jp/php/pdostatement.bindparam.html
- [similar]
- SQL プリペアドコマンドを出力する 10345
- « PDOStatement::columnCount PDOStatement::errorCode » PHP Manual PDOStatement SQL プリペアドコマ
...
て実行します */ $calories = 150 ; $colour = 'red' ; $sth = $dbh -> prepare ( 'SELECT name, colour, calories ...
ERE calories < :calories AND colour = :colour' ); $sth -> bindParam ( ':calories' , $calories , PDO :: PA ...
RAM_INT ); $sth -> bindValue ( ':colour' , $colour , PDO :: PARAM_ ...
STR , 12 ); $sth -> execute (); $sth -> debugDumpParams (); ?> 上の ...
-
https://man.plustar.jp/php/pdostatement.debugdumpparams.html
- [similar]
- 値をパラメータにバインドする 10155
- « PDOStatement::bindParam PDOStatement::closeCursor » PHP Manual PDOStatement 値をパラメータにバ
...
トを実行する */ $calories = 150 ; $colour = 'red' ; $sth = $dbh -> prepare ( 'SELECT name, colour, calories ...
ERE calories < :calories AND colour = :colour' ); $sth -> bindValue ( 'calories' , $calories , PDO :: PAR ...
、コロン ":" を付けることができます(オプション) */ $sth -> bindValue ( ':colour' , $colour , PDO :: PARAM_ ...
STR ); $sth -> execute (); ?> 例2 疑問符プレースホルダを用いて ...
-
https://man.plustar.jp/php/pdostatement.bindvalue.html
- [similar]
- 結果セットから次の行を取得する 9311
- « PDOStatement::execute PDOStatement::fetchAll » PHP Manual PDOStatement 結果セットから次の行を取
...
します。 例 例1 異なる取得方法で行を取得する <?php $sth = $dbh -> prepare ( "SELECT name, colour FROM frui ...
t" ); $sth -> execute (); /* Exercise PDOStatement::fetch sty ...
s an array indexed by column name\n" ); $result = $sth -> fetch ( PDO :: FETCH_ASSOC ); print_r ( $result ...
ed by both column name and number\n" ); $result = $sth -> fetch ( PDO :: FETCH_BOTH ); print_r ( $result ...
-
https://man.plustar.jp/php/pdostatement.fetch.html
- [similar]
- 結果セット中のカラム数を返す 8138
- « PDOStatement::closeCursor PDOStatement::debugDumpParams » PHP Manual PDOStatement 結果セット中
...
ew PDO ( 'odbc:sample' , 'db2inst1' , 'ibmdb2' ); $sth = $dbh -> prepare ( "SELECT name, colour FROM frui ...
) 結果セットにあるカラム数を数える */ $colcount = $sth -> columnCount (); print( "Before execute(), resul ...
t set has $colcount columns (should be 0)\n" ); $sth -> execute (); /* 結果セットにあるカラム数を数える ...
*/ $colcount = $sth -> columnCount (); print( "After execute(), result ...
-
https://man.plustar.jp/php/pdostatement.columncount.html
- [similar]
- 結果セットの次行から単一カラムを返す 8138
- « PDOStatement::fetchAll PDOStatement::fetchObject » PHP Manual PDOStatement 結果セットの次行から
...
ありません。 例 例1 次行の最初のカラムを返す <?php $sth = $dbh -> prepare ( "SELECT name, colour FROM frui ...
t" ); $sth -> execute (); print( "Fetch the first column from ...
the first row in the result set:\n" ); $result = $sth -> fetchColumn (); print( "name = $result \n" ); p ...
the second row in the result set:\n" ); $result = $sth -> fetchColumn ( 1 ); print( "colour = $result \n" ...
-
https://man.plustar.jp/php/pdostatement.fetchcolumn.html
- [similar]
- 文ハンドラにおける直近の操作に関連する拡張エラー情報を取得する 7673
- « PDOStatement::errorCode PDOStatement::execute » PHP Manual PDOStatement 文ハンドラにおける直近
...
エラーを発生させる -- BONES テーブルは存在しない */ $sth = $dbh -> prepare ( 'SELECT skull FROM bones' ); $ ...
); echo "\nPDOStatement::errorInfo():\n" ; $arr = $sth -> errorInfo (); print_r ( $arr ); ?> 上の例の出力 ...
-
https://man.plustar.jp/php/pdostatement.errorinfo.html
- [similar]