May 2020
Beginner
564 pages
14h 9m
English
XML: PostgreSQL supports the XML data type and checks whether it is well-formed upon insertion. For more information on the PostgreSQL XML data type, visit https://www.postgresql.org/docs/11/datatype-xml.html.
Network Address Types: PostgreSQL offers some data types to hold IP and MAC addresses. The following table shows examples of what values can be placed in each of these data types:
| CIDR | INET | MACADDR | MACADDR8 |
| 192.168.0.7 | 192.168.0.7/24 | '07:01:3b:02:05:01' | '07:01:3b:02:05:01:07:08' |
These data types are not available in SQL Server or Oracle either. You would need to store these types of values in a VARCHAR, BINARY, or INT data type instead.
Read now
Unlock full access