Prepare示例
php
$conn = odbc_connect("XuguDB", "SYSDBA", "SYSDBA");
$sql = "select id,name from odbc_test where id = ?";
$stmt = odbc_prepare($conn, $sql);
$id = 1;
odbc_execute($stmt, array($id));
while(odbc_fetch_row($stmt)){
$id = odbc_result($stmt, 1);
$name = odbc_result($stmt, 2);
echo "$id, $name\n";
}
odbc_close($conn);