update : 2015.11.03
php.shukuma.com검색:
|
maxdb_stmt_preparemaxdb_stmt::prepare(PECL maxdb >= 1.0) maxdb_stmt_prepare -- maxdb_stmt::prepare — Prepare an SQL statement for execution 설명절차식 형식
bool maxdb_stmt_prepare
( resource
$stmt
, string $query
)객체 기반 형식 maxdb_stmt_prepare() prepares the SQL query pointed to by the null-terminated string query. The statement resource has to be allocated by maxdb_stmt_init(). The query must consist of a single SQL statement.
The parameter
The parameter markers must be bound to application variables using maxdb_stmt_bind_param() and/or maxdb_stmt_bind_result() before executing the statement or fetching rows. 반환값
성공 시 예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제의 출력 예시: Portland is in district OR 참고
|