Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Conexión con bases de datos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Conexión con bases de datos

 
 
Herramientas Buscar en Tema Desplegado
  #7  
Antiguo 23-11-2007
Avatar de alexander_lv
alexander_lv alexander_lv is offline
Miembro
 
Registrado: mar 2007
Ubicación: Colombia - Quindio - Circasia
Posts: 11
Poder: 0
alexander_lv Va por buen camino
hay una funcion RecordCountInQuery

el FIBPlus ya tiene una funcion para que hace exactamente el

Código SQL [-]
SELECT COUNT(*) FROM Table1

Código Delphi [-]
function RecordCountInQuery(FQuery: TFIBQuery): integer;

muy funcional para que no hagas otra sentencia porque se le llena el codigo de sentencias sql repetidas pero tiene unas limitaciones







Unit

CommonIB

function RecordCountInQuery(FQuery: TFIBQuery): integer;

Description

Call RecordCountInQuery to get a number of records, which are returned by the query (FQuery). The procedure tries to change a query text in FQuery.SQL and executes changed query. For example, if you set FQuery.SQL to 'SELECT * FROM Table1' RecordCountInQuery executes the following query: SELECT COUNT(*) FROM Table1. It allows getting number of result records for a query without fetching records. However, this function has some limitations. You can not use this function for queries, which include GROUP BY, DISTINCT and UNION options.

Última edición por alexander_lv fecha: 23-11-2007 a las 20:32:42.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Problema con TQuery.RecordCount kuan-yiu Varios 4 26-10-2006 18:54:31
Problema con un RecordCount Lucciano Conexión con bases de datos 4 07-04-2006 15:40:54
Problema con la funcion mail JulioGO PHP 2 26-09-2005 11:24:15
una simple función, un grave problema.. DynaRoc Varios 6 23-11-2004 16:39:55
problema al llamar una función sgarrido Varios 3 27-07-2004 01:14:33


La franja horaria es GMT +2. Ahora son las 13:50:41.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi