In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the difference between simple view and complex view in SQL, Xiaobian thinks it is quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
A view in SQL as a logical subset of data from one or more tables. Views are used to restrict data access. A view does not contain its own data, but contains a similar window through which you can view or change the data in the table. The table on which the view is based is called the base table.
SQL has two types of views: simple views and complex views.
A simple view can contain only a single base table. Complex views can be constructed on multiple base tables.
Complex views can contain: join conditions, group by clauses, order by clauses.
The main differences between these views are:
Simple view Complex view contains only one base table or is created from only one table. Contains or creates from multiple base tables. We can't use MAX (), COUNT (), etc. We can use the group function. Does not contain data sets. It protects data sets. DML operations can be performed through simple views. DML operations cannot always be performed through complex views. INSERT, Delete, and UPDATE can be performed directly on simle views. We cannot directly apply INSERT, Delete, and UPDATE to complex views. Simple views do not contain group by, distinct, pseudocolumn such as rownum, columns defy by expressions. It can contain group by, distinct, pseudocolumn such as rownum, columns defy by expression. NOT NULL columns in base tables are not included. NOT NULL columns not selected by a simple view can be included in a complex view. What is the difference between simple view and complex view in SQL? I hope the above content can help you and learn more. If you think the article is good, you can share it so that more people can see it.
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