準備並執行 SQL 語句
警告
Prepared 語句不關心表名的 wild 引數。例如,以下陳述不正確:
$query = "SELECT name, city FROM ? WHERE id = ? AND country = ?";
正確的準備查詢將是:
$query = "SELECT name, city FROM users WHERE id = ? AND country = ?";
Prepared 語句不關心表名的 wild 引數。例如,以下陳述不正確:
$query = "SELECT name, city FROM ? WHERE id = ? AND country = ?";
正確的準備查詢將是:
$query = "SELECT name, city FROM users WHERE id = ? AND country = ?";