【发布时间】:2012-11-15 15:35:52
【问题描述】:
在PDO::bindValue() 中使用显式数据类型有什么意义?
例如,在以下任一形式中,SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'a'
$pdos->bindValue(':Value_For_An_Int_Col', 'a');//default arg for the third and opt par is PDO::PARAM_INT
$pdos->bindValue(':Value_For_An_Int_Col', 'a', PDO::PARAM_INT);
【问题讨论】:
标签: php mysql pdo placeholder bindvalue