...代码
$get = $call->process("INSERT INTO table1 VALUES ( ?, ?, ?, ?, UTC_TIMESTAMP(), 0)
ON DUPLICATE KEY
UPDATE col4 = ?, col5 = UTC_TIMESTAMP()",
array($_SESSION['val1+val2'], $_SESSION['val1'], $_SESSION['val2'], 'OK', 'NOOK'));
if($get)
{
$get2 = $call->process("UPDATE table2 SET col8 = col8 + 1 WHERE colval1 = ?",
array($_SESSION['val1']));
}
我应该创建存储过程吗?