Código Delphi [-] with TuQuery do begin If active then close; SQL.Clear; SQL.Add ('Insert into TuTabla (campo1, campo2)'); SQL.Add('values( :Campo1, :campo2)'); ParamByname('Campo1').AsString := unEdit.Text; ParamByname('Campo2').AsInteger := UnInteger; ExecSQL; end; //with
with TuQuery do begin If active then close; SQL.Clear; SQL.Add ('Insert into TuTabla (campo1, campo2)'); SQL.Add('values( :Campo1, :campo2)'); ParamByname('Campo1').AsString := unEdit.Text; ParamByname('Campo2').AsInteger := UnInteger; ExecSQL; end; //with