Ver Mensaje Individual
  #2  
Antiguo 10-01-2007
luisgutierrezb luisgutierrezb is offline
Miembro
 
Registrado: oct 2005
Ubicación: México
Posts: 925
Reputación: 19
luisgutierrezb Va por buen camino
Código Delphi [-]
adoquery1.sql.clear;

adoquery1.sql.add('select * from cliente where rfc=''AOBGXXXX'');
// o tambien

adoquery1.sql.add('select * from cliente where rfc=' + QuotedStr('AOBGXXXX'));
//o tambien

adoquery1.sql.add(Format('select * from cliente where rfc=%s',[''AOBGXXXX'']));
adpquery1.execsql;
puedes hacer combinaciones con lo anterior...
Responder Con Cita