You are on page 1of 9

DATA TYPES :

DEFINITION:

Describes the technical properties of data objects. No memory is associated with data types.

D S ( P 1 ) E y s t e m r e D 2l e ) m S

t a UD

s e e f i rn eD f i n e d )

3e t r )n u tE c a 4 lt r e u y) m r S e e dt

1) Elementary System Defined Data Types :


Character (C) Numeric Text(N) Integer(I) Packed(P) Float(F) Date(D) Time(T) Hexadecimal(X)

Data Type c n i p

Internal Descr. character Numeric Text Integer Packed Decimal

Min. Max. Internal Internal Valid Length Length Values 1 1 4(fixed) 8 65535 65535 -16

Default Initial Value

Any Blank character 0-9 -231 to +231 0-9 0 0 0

Data Type f d t x

Internal Descr. Floating Point Date Time Hexa Decimal

Min. Max. Default Internal Internal Valid Initial Length Length Values Value 8 8 -IE-307 to 0.0 IE308 8(fixed) 6(fixed) 1 --65535 0-9 0-9 Any 000000 00 000000 0

2) Structured System Defined Data Types

Example: All Database Tables

3) Elementary User Defined Data Types :


Example: Types. Eg: number type i.

4) Structured User Defined Data Types : Example : Internal Tables

You might also like