update : 2015.11.03
php.shukuma.com검색:
|
maxdb_preparemaxdb::prepare(PECL maxdb >= 1.0) maxdb_prepare -- maxdb::prepare — Prepare an SQL statement for execution 설명절차식 형식
resource maxdb_prepare
( resource
$link
, string $query
)객체 기반 형식
maxdb_stmt maxdb::prepare
( string
$query
)maxdb_prepare() prepares the SQL query pointed to by the null-terminated string query, and returns a statement handle to be used for further operations on the statement. 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. 반환값
maxdb_prepare() returns a statement resource or 예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제의 출력 예시: Rosemont is in district IL 참고
|