有了drupal_write_record()函数,还需要我们自己写SQL语句嘛?这正是为“不习惯”用sql的人群准备的API。
drupal_write_record($table, &$object, $update = array())
示例: