Domanda

my query is not work

INSERT INTO rebuilder (id_utente, pwd)VALUES('75693',AES_ENCRYPT('password','set'))

I haven't errors but the pwd value in DB table is NULL.

Ideas? Tnx Stefania

È stato utile?

Soluzione

see SQLFIDDLE

create table rebuilder (
  id_utente int,
  pwd varbinary(200) 
);

-- data
insert into rebuilder (id_utente, pwd) 
values (75693,aes_encrypt('password','set'));

enter image description here

see SQLFIDDLE

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top