In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the DELETE sentence in SQL. I hope you will get something after reading this article. Let's discuss it together.
SQL DELETE statement
The DELETE statement is used to delete rows from the table, with the following syntax:
DELETE FROM table name WHERE column name = value
"Person" table:
LastName FirstName Address CityCarter Thomas Changan Street BeijingWilson Fred Zhongshan 23 Nanjing
Delete a row
DELETE FROM Person WHERE LastName = "Wilson"
Results:
LastName FirstName Address CityCarter Thomas Changan Street Beijing
Note: the "Fred Wilson" in the "Person" table of this example is deleted.
Delete all rows
You can delete all rows without deleting the table. This means that the structure, properties, and indexes of the table are complete:
DELETE FROM table_name
Or:
DELETE * FROM table_name has finished reading this article. I believe you have some understanding of "how to use DELETE sentences in SQL". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.