$query = "INSERT INTO article (article_title, article_credits, article_excerpt,
article_body, article_img_list, article_img_main,
article_published, article_date, article_modified, article_author) ".
"SELECT '".$db->escape($post['title'])."', '".json_encode($credits)."','".$db->escape($post['excerpt']).
"','".$db->escape($post['article'])."','".$db->escape($articleImageListName)."
','".$db->escape($articleImageMainName)."
','".$published."',
'".date("Y-m-d H:i:s", strtotime($post['date']))."',
'".date('Y-m-d H:i:s')."', email ".
"FROM users WHERE id = ".$id"";
上面的查询将数据插入我的数据库并选择来自用户的电子邮件。
如何将其转换为 UPDATE 查询?