我想做一個基本的mysql更新,但使用AES_ENCRYPT - 任何人都可以解釋爲什麼我得到一個錯誤信息?下面是查詢: -AES_ENCRYPT與MYSQL UPDATE
UPDATE MailList
SET Email = AES_ENCRYPT([email protected], 'jkfdsfsaKJjdsf')
WHERE ID = '138142'
我得到以下錯誤:
#1064 - 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 '@hotmail.co.uk,'jkaKJjkH87') WHERE MailListID = '138142'' at line 1