In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the corresponding relationship between NULL and the only constraint UNIQUE is, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor with you to understand.
The correspondence between NULL and unique constraint UNIQUE
In the database, NULL indicates that the column value is empty. The unique constraint UNIQUE states that the values of the specified column must be unique and cannot be the same between values. At this point, a question arises as to whether NULL and NULL are the same or different. Because the SQL syntax is not clearly defined, each database vendor handles it differently.
(1) PostgreSQL and Oracle believe that NULL represents no specified data, so there are many possibilities for data, so any NULL is allowed in the UNIQUE constraint column.
(2) Informix and SQL Server think that NULL means null and is the only state. So there can be only one NULL in the UNIQUE constraint column.
(3) DB2, SQLAnyWhere and InterBase believe that NULL is uncertain and cannot be compared, so NULL is not allowed in UNIQUE constraint columns.
SQLite, on the other hand, follows the policies of PostgreSQL and Oracle, allowing any NULL in the UNIQUE constraint column.
Thank you for reading this article carefully. I hope the article "what is the corresponding relationship between NULL and unique constraint UNIQUE" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.