In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to delete data from a table in oracle. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
To delete data from a table in oracle, you can use the method of truncate table table name and delete from table name where condition.
I. delete statement
(1) conditional deletion
Syntax format:
Delete [from] table_name [where condition]
For example, delete the data in the users table whose userid is' 001':
Delete from users where userid='001'
(2) unconditionally delete the entire table data
Syntax format:
Delete table_name
For example, delete all data in the user table:
Delete users; II. Truncate statement
To use the True statement is to delete all records in the table.
Syntax format:
Truncate table table_name
(1) Delete all records without retaining the space occupied by the records
Truncate table table_name [drop storage]
For example, deleting all data in the users table does not save the footprint: Truncate table users drop storage; can omit drop storage because it uses the drop storage keyword by default
(2) Delete all records and retain the space occupied by records
Truncate table table_name [reuse storage]
For example, delete all the data in the users table and save the occupied space:
Truncate table users reuse storage;, thank you for your reading! This is the end of the article on "how to delete the data in the table in oracle". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.