gpt4 book ai didi

php - AES_ENCRYPT 与 MYSQL 更新

转载 作者:行者123 更新时间:2023-11-29 03:50:44 24 4
gpt4 key购买 nike

我正在尝试进行基本的 mysql 更新,但使用的是 AES_ENCRYPT - 谁能解释为什么我收到错误消息?以下是查询:-

UPDATE MailList 
SET Email = AES_ENCRYPT( arandomemail@hotmail.com, '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 

最佳答案

UPDATE MailList 
SET Email = AES_ENCRYPT( 'arandomemail@hotmail.com', 'jkfdsfsaKJjdsf' )
WHERE ID = '138142'

关于php - AES_ENCRYPT 与 MYSQL 更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9721398/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com