我試圖一次更新多個列:MySQL的更新語句給我一個錯誤
$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
哪裏我的代碼去錯了嗎?
感謝,它一直 – 2012-04-15 10:50:18