Ver Mensaje Individual
  #2  
Antiguo 15-06-2012
Avatar de Angel.Matilla
Angel.Matilla Angel.Matilla is offline
Miembro
 
Registrado: ene 2007
Posts: 1.350
Reputación: 19
Angel.Matilla Va por buen camino
Problema resuelto

Fiado del manual de referencia de MySQL usaba la sintaxis que sugieren en él (@clavencrypt) pero con C++ Builder funciona a la perfección usando parámetros:
Código:
ADOQuery->Close();
ADOQuery->SQL->Text = "SELECT num_socio, AES_DECRYPT(apellidos, :clave) ApeSoc, "
"AES_DECRYPT(nombre, :clave) NomSoc, login_socio FROM "
"inscripciones ORDER BY ApeSoc, NomSoc, num_socio";
ADOQuery->Parameters->ParamByName("clave")->Value = clavencrypt;
ADOQuery->Open();
Responder Con Cita