Ver Mensaje Individual
  #6  
Antiguo 04-10-2005
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
Cita:
Empezado por micayael
Hola.

Como hago para tener un tipo de dato de 9 de digitos y 2 decimales?¿
Usa 10 digitos y 2 decimales, según la ayuda de delphi 9 digitos depende del dialecto que uses:

Defined with precision, with or without scale, they are stored as SMALLINT, INTEGER,
DOUBLE PRECISION or 64-bit integer. Storage type depends on both the precision and the
dialect of the database. Table 4.2 describes these relationships.
Código:
Precision Dialect 1 Dialect 3
1 to 4 • SMALLINT for NUMERIC datatypes
         • INTEGER for DECIMAL datatypes
         • SMALLINT
5 to 9 INTEGER INTEGER
10 to 18 DOUBLE PRECISION INT64
con 9 digitos se guarda como entero, con 10 y dialecto 3 como INT64.

Un saludo
Responder Con Cita