Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 08-06-2017
Avatar de GustavoCruz
GustavoCruz GustavoCruz is offline
Miembro
 
Registrado: jul 2006
Ubicación: Sampués Sucre (Colombia)
Posts: 293
Poder: 18
GustavoCruz Va por buen camino
recorrer datos en oracle

Hola amigos foreros en firebird puedo hacer esta instrucción
Código SQL [-]
for select i.itecups, i.itesoat from hgstable h, itetable i, afttable a
    where i.itecups = h.hgscups and a.aftripsfactura = h.hgsrips and
    a.aftcuenta = :cuenta group by i.itecups, i.itesoat into :cups, :soat do
    begin
      if (upper(tipo) = 'SOAT') then
        begin
        select first 1 :uvr * p.premultiplo from pretable p
          where p.precodigo = :soat and p.codmanual = -1 into :valor_u;
        end
      else
        begin
        select first 1 :uvr * p.premultiplo from pretable p
          where p.precodigo = :cups and p.codmanual = -1 into :valor_u;
        end
      update hgstable g set g.hgsunitario = :valor_u, g.hgstotal =
      :valor_u * g.hgscantidad, g.hgstru_val = :trun_val where g.hgscups = :cups;
    end

como se hace en oracle el
Código SQL [-]
for select i.itecups, i.itesoat from hgstable h, itetable i, afttable a
    where i.itecups = h.hgscups and a.aftripsfactura = h.hgsrips and
    a.aftcuenta = :cuenta group by i.itecups, i.itesoat into :cups, :soat do

Gracias por su Tiempo
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
Recorrer y comparar datos en un tzquery jose001 OOP 3 02-09-2016 22:54:49
Recorrer y comprar datos en un DBgrid gonzabec Conexión con bases de datos 9 20-11-2012 21:18:47
Recorrer Una Tabla O Dbgrid Para Validar Datos donpedro Conexión con bases de datos 10 18-07-2011 17:33:06
Recorrer datos Acces bd amo3k OOP 2 13-02-2010 16:48:22
Tipos de datos en Oracle 10g Rigg Conexión con bases de datos 6 27-10-2005 01:50:07


La franja horaria es GMT +2. Ahora son las 03:37:18.


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