Ver Mensaje Individual
  #11  
Antiguo 22-12-2019
orodriguezca orodriguezca is offline
Miembro
 
Registrado: ene 2009
Posts: 221
Reputación: 16
orodriguezca Va por buen camino
Cita:
Empezado por servicomp Ver Mensaje

Código Delphi [-]
SQLPrueba.SQL.Clear;
SQLPrueba.SQL.Add('INSERT INTO TABLA (VALOR1, VALOR2) VALUES (:V1, :V2) RETURNING ID');
SQLPrueba.ParamByName('V1').AsString:='PRUEBA';
SQLPrueba.ParamByName('V2').AsString:='MAS DE PRUEBA';
SQLPrueba.ExecSQL(False);

Creo que el problema está en
Código Delphi [-]
SQLPrueba.ExecSQL(False);
En su lugar utiliza
Código Delphi [-]
SQLPrueba.Open;
Responder Con Cita