Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Bases de datos > Firebird e Interbase
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #6  
Antiguo 13-04-2009
jconnor82 jconnor82 is offline
Miembro
 
Registrado: feb 2008
Posts: 22
Poder: 0
jconnor82 Va por buen camino
Es cierto no he podido acceder al array usando el indice, espero y haya una funcion que permita trabajar con ellos porque cuando se accede por campo de tabla si que se puede hacer, cito una parte del libro The Firebird eBook

Limited Dynamic SQL Access
The following example is a simple demonstration of how a DSQL application can get limited read access to an array slice through a stored procedure:
Código SQL [-]
create procedure getcharslice(
  low_elem smallint, high_elem smallint)
returns (id integer, list varchar(50))
as
  declare variable i smallint;
  declare variable string varchar(10);
begin
  for select a1.ID from ARRAYS a1 into :id do
  begin
    i= low_elem;
    list = '';
    while (i <= high_elem) do
    begin
      select a2.CHARARRAY[:i] from arrays a2
      where a2.ID = :id
      into :string;
      list = list||string;
      if (i < high_elem) then
      list = list||',';
      i = i + 1;
    end
    suspend;
  end
end
donde la tabla array es de esta forma:
Código SQL [-]
CREATE TABLE ARRAYS
(ID BIGINT,
CHARARRAY CHAR(14)[8]);
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
Juegos con matrices huwabe78 OOP 11 14-12-2007 19:03:15
matrices finees Varios 5 15-11-2006 01:52:27
Matrices sergio_015 OOP 3 09-03-2005 19:53:07
Matrices mmtaffarel OOP 2 15-10-2004 03:19:27
Matrices - problemas..... arieleb Varios 1 21-09-2003 12:30:35


La franja horaria es GMT +2. Ahora son las 03:34:42.


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