110 likes | 139 Views
A data type (or) only types refers to the specific type of data that the variable holds. Moreover, these include the date, timestamps, varchar, and some other formats.
E N D
PostgreSQL Data Types The PostgreSQL is a database that manages multiple values of data. What is the data type? A data type (or) only types refers to the specific type of data that the variable holds. Moreover, these include the date, timestamps, varchar, and some other formats.
Numeric Datatypes PostgreSQL supports two types of Numeric datatypes, including integers and Floating point numbers.
Monetary data types This is the detailed data that the database provides. Here in this data type, numeric values, int and bigint can be modified into money. So now many person say that we can use Float datatype. But this is not recommended to manage money due to the potential for rounding bugs. Character data types The following table includes the PostgreSQL character datatypes.
Date/time data type The date/time datatype is used to represent the columns using the date and time values.
Geometric data types The geometric data types represent two-dimensional data objects. Moreover, these data types help to perform various operation like rotation, scaling and translation etc. Network Address type Today we do have many network address types like IPV4, IP V6, and MAC address. Moreover, this PostgreSQL offers different data types to store in this address.
It can store in a network address, instead of plain text, it is preferable to keep these data types. Enumerated data types In PostgreSQL, enumerated data types are useful for representing the rarely changing information such as country code (or) branch id. So to ensure data integrity, the enumerated data type is defined with a table with a foreign key. Range type These represent data that uses the data range. These range types can be a discrete range (or) continuous ranges.
Pseudo types PostgreSQL contains several special-purpose entries that are collectively called as pseudotypes. Moreover, a pseudo data type cannot be used as a column data type that can be used as a column data type. Additionally, this can be used to declare a function argument (or) a result type.
THANK YOU CONTACT 70-70-90-50-90 Email info@ducatindia.com