Cita:
|
Empezado por tcp_ip_es
como cuando utilizamos las dos comillas para una comilla
|
¡Eureka!
Me ha funcionado poniendo dos ::
Código Delphi
[-]
AdoQuery1.SQL.Text := 'set @fila = 0';
AdoQuery1.ExecSQL;
AdoQuery1.SQL.Text :=
'select @fila ::= @fila + 1 as fila, clave, nombre from solicitante where tipo_id = :tipoId';
AdoQuery1.Parameters.ParamByName('tipoId').DataType := ftInteger;
AdoQuery1.Parameters.ParamByName('tipoId').Value := 4;
AdoQuery1.Open;
// Saludos