我想更新drupal中特定sid值的表行值moderation = 1.现在我收到错误,如下所示。如何克服这个
$query = db_update('webform_views_welcome_message_2')
->fields(array('moderation' => '1',))
->condition('sid', $sid)
->execute();
PDOException:SQLSTATE [HY000]:常规错误:1288 UPDATE的目标表webform_views_welcome_message_2不可更新:UPDATE {webform_views_welcome_message_2} SET moderation =:db_update_placeholder_0 WHERE(sid =:db_condition_placeholder_0)