迭代DBAL原则

时间:2015-11-19 14:50:29

标签: php symfony doctrine dbal

我试图用dbal连接计算第一列。

$conn->update("test ", array("feld_number"=>"feld_number+1"), array("art"=>'SYSTEM',"feld"=>'XML',"feld_key"=>0));

这是我得到的错误:

 An exception occurred while executing 'UPDATE test SET feld_number = ? WHERE art = ? AND feld = ? AND feld_key = ?' with params ["feld_number+1", "SYSTEM", "XML", 0]:
  ORA-01722: invalid number

我该怎么做? 谢谢

1 个答案:

答案 0 :(得分:0)

找到它:

   $conn->executeUpdate("UPDATE testSET feld_number=feld_number+1 WHERE art = ? AND feld = ? AND feld_key = ?", array('SYSTEM','XML',0,));