Ver Mensaje Individual
  #3  
Antiguo 10-04-2004
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 27
__cadetill Va por buen camino
achicar a nivel de código.... no, pero sí que verás/notarás cambio en el rendimiento

Código:
Query.Close;
Query.SQL.Clear;
Query.SQL.Add('select * from tabla where campo = ' + QuoteStr('mi_txto') );
Query.Open;
if Query.IsEmpty then
  Añadir
Por supuesto, faltaría el control de errores con try...except..end;
Responder Con Cita