我正在尝试一次更新多个列:
$query="UPDATE search_page
SET search_page_description='".$search_page_description."',
SET title='".$title."',
SET h1='".$h1."',
SET meta_description='".$metadata."'
WHERE features_id=".$id;
$result_update_query=databaseConn :: dbDelta($query);
我明白了:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET title='fasdf', SET h1='fasdfas', SET meta_description='fas' at line 3
我的代码哪里出错了?