Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Firebird e Interbase (https://www.clubdelphi.com/foros/forumdisplay.php?f=19)
-   -   Problemas con Numeros decimales (https://www.clubdelphi.com/foros/showthread.php?t=13808)

MarioATamborini 31-08-2004 18:50:46

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:confused: . 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
);

MarioATamborini 31-08-2004 19:28:21

Solucionado... Puse ENABLE BDC en TRUE
En caso de haber otra forma me gustaria saberlo. Gracias


La franja horaria es GMT +2. Ahora son las 14:33:45.

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