Club Delphi  
    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
  #1  
Antiguo 31-08-2004
MarioATamborini MarioATamborini is offline
Miembro
 
Registrado: feb 2004
Ubicación: Casilda - Santa Fe - Argentina
Posts: 59
Poder: 21
MarioATamborini Va por buen camino
Exclamation Problemas con Numeros decimales

Hola a todos... Uso Delphi 5 Enterprise con Interbase 5.5 por medio del BDE.

Al querer ver los Numeros con decimales por el programa o por el SQLExplorer me los muestra como INTEGER. Como lo soluciono . Sino se entiende haganmelo saber.
Desde ya muchas gracias a todos

Pero por el Server Manager me dice
SHOW TABLE empleados_decretos
CODI_EMPR (CODI_EMPR) SMALLINT Not Null
CODI_EMPL (CODI_EMPL) SMALLINT Not Null
CODI_DECR (CODI_DECR) SMALLINT Not Null
IMPO_EMDE (IMPORTE) NUMERIC(9, 2) Not Null DEFAULT 0
PORC_EMDE (PORCENTAJE) NUMERIC(9, 2) Not Null DEFAULT 0
CONSTRAINT KEY_EMPLEADOS_DECRETOS:
Primary key (CODI_EMPR, CODI_EMPL, CODI_DECR)
CONSTRAINT DECRETOS_Y_EMPDECRETOS:
Foreign key (CODI_DECR) References DECRETOS (CODI_DECR)
CONSTRAINT EMPLEADOS_Y_EMPDECRETOS:
Foreign key (CODI_EMPR, CODI_EMPL) References EMPLEADOS (CODI_EMPR, CODI_EMPL)
Triggers on Table EMPLEADOS_DECRETOS:
TI_EMPLEADOS_DECRETOS, Sequence: 0, Type: AFTER INSERT, Active
TU_EMPLEADOS_DECRETOS, Sequence: 0, Type: AFTER UPDATE, Active
Los creo de esta manera.
CREATE DOMAIN IMPORTE DECIMAL(9,2) DEFAULT 0 NOT NULL;

CREATE TABLE EMPLEADOS_DECRETOS (
CODI_EMPR CODI_EMPR,
CODI_EMPL CODI_EMPL,
CODI_DECR CODI_DECR,
IMPO_EMDE IMPORTE,
PORC_EMDE PORCENTAJE,
CONSTRAINT KEY_EMPLEADOS_DECRETOS
PRIMARY KEY (CODI_EMPR, CODI_EMPL, CODI_DECR),
CONSTRAINT Decretos_Y_EmpDecretos
FOREIGN KEY (CODI_DECR)
REFERENCES DECRETOS,
CONSTRAINT Empleados_Y_EmpDecretos
FOREIGN KEY (CODI_EMPR, CODI_EMPL)
REFERENCES EMPLEADOS
);
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


La franja horaria es GMT +2. Ahora son las 12:16:58.


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