我的查询不工作
INSERT INTO rebuilder (id_utente, pwd)VALUES('75693',AES_ENCRYPT('password','set'))
我没有错误,但数据库表中的 pwd 值为 NULL。
想法? 发件人 斯蒂芬妮娅
最佳答案
参见 SQLFIDDLE
create table rebuilder (
id_utente int,
pwd varbinary(200)
);
-- data
insert into rebuilder (id_utente, pwd)
values (75693,aes_encrypt('password','set'));
参见 SQLFIDDLE
关于mysql - aes_encrypt 插入表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21080672/