在執行此查詢時,我在WHERE
子句附近出現錯誤。更新語句中具有選擇子查詢的嵌套SQL查詢
update AssetData set EmployeeName = ISNULL(EmployeeName,'') [email protected]
where ([AssetNumber] like'%" + WA_number.Text + "%')
and ID IN (SELECT ID FROM AssetData ORDER BY ID DESC
where ([AssetNumber] like'%" + WA_number.Text + "%') LIMIT 1)
有人請幫我弄清楚這有什麼問題嗎?
的數據庫,你的工作嗎? – th1rdey3