Data Types in Oracle
Data types in Oracle:
- char(l), is used to store fixed length string where l is the maximum length of the string.
- varchar2(l), is used to store variable length string where l is the maxium length of the string. Different of varchar2 and char is that: no matter how long the string store in char, it will reserve space of length defined in char, while varchar2's length can be flexible.
- varchar(l), is same as varchar2 but varchar2 have a higher string length capacity.
- number(p, s), is used to store either integer or double, where p (precision) is the length of the number and s (scale) is the decimal of the number.
- date, is used to store date and time, where the default date time format is dd/mon/yy hh24:mm:ss.
- blob is used to store binary object like image, document or audio file. lob is stand for Large Object.
- long is used to store string, which has longer capacity than varchar2.
- raw is used to store binary object like blob, and actually is obsolete.

0 comments:
Post a Comment