Ver Mensaje Individual
  #3  
Antiguo 16-04-2018
Avatar de Angel.Matilla
Angel.Matilla Angel.Matilla is offline
Miembro
 
Registrado: ene 2007
Posts: 1.350
Reputación: 19
Angel.Matilla Va por buen camino
Cita:
Empezado por Casimiro Notevi Ver Mensaje
Lo más simple es algo así: Código SQL [-]Select count(*) from tabla
Sí, lo primero que tenía puesto era así:
Código PHP:
Auxiliar->Close();
Auxiliar->SQL->Text "SELECT RDB$RELATION_NAME FROM RDB$RELATIONS WHERE RDB$SYSTEM_FLAG = 0 AND RDB$RELATION_TYPE = 0 ORDER BY RDB$RELATION_NAME";
Auxiliar->Open();

nItem 0;
for (; !
Auxiliar->EofAuxiliar->Next())
{
     
Query->Close();
     
Query->SQL->Text "SELECT COUNT(*) FROM " Auxiliar->FieldByName("RDB$RELATION_NAME")->AsString.Trim();
     
Query->Open();
     
nItem += Query->Fields->FieldByNumber(1)->AsInteger;

Pero ese nItem ¡sigue sin actualizarse!

Última edición por Angel.Matilla fecha: 16-04-2018 a las 11:10:31.
Responder Con Cita