Summary
Use the DELETE statement to delete data from the table.
Basic routines
DELETE [from] table
[WHERE condition];
Basic ApplicationUse the WHERE clause to specify the deleted record.
DELETE from Departments
WHERE department_name = '
1. Database Configuration
First of all, your installation database, which is installed here is Oracle, does not explain.
Open the Web-inf/config/systemglobals.properties file, locate the configuration parameters database.driver.name and configure
There are many ways in which time can be stored in a database, but it is mainly date-oriented, with Oracle as an example
Typically write a time condition directly in a database statement for example: c_datetime
The more classic error is
Example Demo:
(1) Query the data in the users of the table.
Select U.id,u.realname,u.sex from Users u;
Query results are as follows
ID Realname SEX1 10082 Pine XX2 10084 Lin xx 13 10087 West XX4 10100 hu xx5 10102 Dragon xx 1......
(2) The "sex" in
Oracle redo logs
Oracle 's database log is called Redo log, and all data changes are recorded redo log, which can be used to repair a damaged database. The redo log is grouped, and the default is three groups. Redo Log is used in turn, a redo log
Oracle generates 1 million test data in the following ways:
Method One: Create a table, add 1 million data at the same time, code:
CREATE TABLE TestTable
as select RowNum as ID,
to_char (sysdate + rownum/24/3600, ' yyyy-mm-dd
1. Create user
Sql> Create user Jack identified by Jack;
2. Change Password
Sql> alter user Jack identified by Rose;
3. Authorized users
Sql> Grant Dba,resource,connect to Jack;
4. Permission to receive
Sql> revoke DBA from Jack;
5. Lock
The original source of this article:
Http://blog.csdn.net/tianlesoftware/archive/2009/10/23/4717318.aspx
There are 4 ways to convert plain tables into partitioned tables :
1. Export/import method
2. Insert with a subquery method
3. Partition
Svrmgr> select * from Dba_jobs;
Initialize related parameters job_queue_processesAlter system set JOB_QUEUE_PROCESSES=39 scope=spfile;//maximum value cannot exceed 1000 job_queue_interval = 10//Schedule Job Refresh frequency secondsDba_jobs
a table function can accept a query statement or a cursor as an input parameter and can output multiple rows of data. The function can be executed in parallel, and the data stream can be continuously output, known as pipeline output. The table
Approximate process.
Oracle Log Analyzer Tool Logminer use
1. Set Date format
Alter system set nls_date_format= ' Yyyy-mm-dd hh24:mi:ss ' scope=spfile;
Select To_char (sysdate, ' Yyyy-mm-dd hh24:mi:ss ') from dual;
2. Add Supplemental Log
If the
Oracle and RAW Device FAQ1. What is called a bare device.A bare device, also called a bare partition (raw partition), is a special character device that is not formatted and is not read by UNIX through a file system. It is the responsibility of the
when the query to the results of a more complex processing, you can use the joint query, subqueries and so on to get the desired results. The following is a detailed list of the classic questions, hoping to enlighten the reader. 1. Title
If you want to implement a data table primary key increase in the Oracle database, there seems to be no way to define the properties of a column directly like MySQL. However, we still have a way to implement the common functions of this database.
Query and delete duplicate records SQL statement 1, find redundant records in the table, duplicate records are based on a single field (ID) to determine select * from table where Id in (select Id from table group Byid having count (ID) > 1) 2,
exists execution Process SELECT * from t1 where exists (select null from t2 where y = x)Can be understood as:For x in (SELECT * from T1)Loopif (exists (select null from t2 where y = x.x)ThenOUTPUT the RecordEnd IfEnd LoopPerformance differences for
Restore Oracle's error in updating or deleting data
Original: Click to open the link
Accidentally deleting the data, executing the DELETE statement incorrectly, giving the other table to delete, and executing a commit. It's really sweaty. The data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service