Ver Mensaje Individual
  #11  
Antiguo 28-02-2012
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola Agustin.

Supongamos que tu tabla está declarada así:
Código SQL [-]
CREATE TABLE MESAS (
  CODIGO     CODIGO CHAR(6),
  ANCHO      INTEGER,
  PERSONAS   INTEGER,
  ALTO       INTEGER,
  ARRIBA     INTEGER,
  IZQUIERDA  INTEGER
);

Con este código tiene que modificar correctamente:
Código Delphi [-]
...
  with IBQuery1 do
  begin
    Close;
    SQL.Clear;
    SQL.Add('UPDATE MESAS SET ANCHO = :ANC, PERSONAS = :PER, ');
    SQL.Add('ALTO = :ALT, ARRIBA = :ARR, IZQUIERDA = :IZQ ');
    SQL.Add('WHERE CODIGO = :COD');
    ParamByName('ANC').Value := 100;
    ParamByName('ALT').Value := 100;
    ParamByName('PER').Value := 100;
    ParamByName('IZQ').Value := 100;
    ParamByName('ARR').Value := 100;
    ParamByName('COD').Value := '000001';
    ExecSQL;
  end;
...

Un saludo.
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita