In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "advanced syntax usage of database insert". In daily operation, I believe that many people have doubts about the advanced syntax usage of database insert. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "advanced syntax usage of database insert". Next, please follow the editor to study!
There is such a business requirement, which requires that the source data be inserted into different tables according to different conditions, and the source data table is updated very frequently. What should such a business requirement do? I first give the source table structure and the table structure that needs to be inserted:
Source tables that are updated frequently:
Create table people (id number,name varchar2 (20), sex char (3), address varchar2 (500))
Insert data into the source table:
Insert into people
Values (1) Zhang Cuishan, male, Wudang Mountain)
Insert into people
Values (2Jing 'Yin Su', 'female', 'Tianhawk Religion')
Insert into people
Values ('Zhang Wuji', 'male', 'Ming Jiao')
Insert into people
Values (4. 'Zhao Min', 'female', 'Royal')
Insert into people
Values (5Jing 'Zhou Zhiruo', 'female', 'Emei Mountain')
Insert into people
Values ('Cheng Kun', 'male', 'Shaolin Temple')
Commit
Query the people result, as shown in the figure:
Several table structures to be inserted:
Create table people_1 (id number,name varchar2 (20))
Create table people_2 (id number,sex char (3))
Create table people_3 (sex char 3, address varchar2 500)
The business requirement now is to ID
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.