我想插入CONTENT_VALUES
如果survey_Id
不存在於表中。如果該值已存在,我想更新CONTENT_VALUES
爲SURVEY_ID
。插入檢查duplidate鍵後的值
$sql="insert into `$prefix.survey_question` (SURVEY_ID, CONTENT_VALUES, USER_ID, CREATED_ON)values('$sur_id','$content_val','$email','$now') on duplicate key update CONTENT_VALUES=values('$content_val')";
$query1=mysql_query($sql)
什麼是'$ query1 = mysql_query(「CONTENT_VALUES」)'? – Typoheads