Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top