In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor shares with you the method of adding multiple pieces of data in sql. I believe many people do not know much about it. In order to let you know more about the method of adding multiple pieces of data in sql, I have summarized the following contents for you. Let's look down together. I'm sure you'll get something.
Sql adds multiple pieces of data:
Add a record
Insert into tableName (num1,num2,num3) values (1pm 2pm 3)
-- add multiple records ①
Insert into tableName (num1,num2,num3) select 3 union all 4 union all / / add all, including duplicates, do not add duplicates using union, the last item does not write unionselect 6 Magi 7 Jing 8
-- add multiple records ②
Insert into tableName (num1,num2,num3) values (1 ~ 2), (4 ~ 3), (1.23 ~ 9)
The above is a brief introduction to the method of adding multiple pieces of data in sql. Of course, the differences in the detailed use of the above have to be understood by everyone. If you want to know more, welcome to follow the industry information channel!
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.