that need to be performed SQL statements:The addition, modification, and deletion of data in the database are all part of the Database manipulation language ( DML), such types of SQL statements can only be made to work by executing commits in the
Database is a long-term storage in the computer, organized and shareable data collection, in short, the database is a place to store data, only in its storage mode has a specific law, so that can facilitate the processing of data, database
1. Data function:Data for us is very important, if you are the management of data, operations personnel, data loss, can not be found, it means that your career is over, in order to avoid data loss, we also do a lot of maintenance, backup, such as
Recently began to contact Oralce, organized a few recent SQL commands commonly used in PL1. Modify the data in the tablewrite the query statement and condition, and then add "for Update", "for Update" is to get oacle Modify permission, execute this
Modify the redolog size of the dead ledg bad environment master database-- Standby database standbyThe four redologs in the master database were previously 50 MB in size.SQL>Alter database recover managed standby database cancel; Database altered.
Modify the redolog size of the oracle dg bad environment master database, dgredolog-- Standby database standbyThe four redologs in the master database were previously 50 MB in size.SQL>Alter database recover managed standby database cancel; Database
--Standby Library StandbyFour Redolog of the main library were previously 50M sizesSql>ALTER DATABASE recover managed standby database cancel;Database altered.sql> ALTER DATABASE Add standby logfile Group One (' +data/orcldg/onlinelog/standby_group_1
This article was further revised based on section 11.4.2 "Building the most available Oracle Database System: Oracle 11gR2 RAC management, maintenance and performance optimization", and thanked Lao tan for his reminder and help.
Supplemental Log is
I. Related codeDatabase Configuration class MysqlDBConn. py
Copy codeThe Code is as follows:# Encoding = UTF-8'''Created on 2012-11-12Mysql Conn connection class'''Import MySQLdbClass DBConn:Conn = None# Establish a connection to the Database
Generic Syntax: altertable [Table name] add [field name] field property default value is an optional parameter instance: altertable class Table 2addCOLUMN group int0 The following example may be true columnaltertable [Table name] add field name
Various types of files can be saved to the database.
File Table:
If exists (select * From DBO. sysobjects where id = object_id (n' [DBO]. [file] ') and objectproperty (ID, n'isusertable') = 1)
Drop table [DBO]. [file]
Go
Create Table
1. modify data
Copy codeThe Code is as follows: DataRow dr = hRDataSet. Tables ["emp"]. Rows. Find (textBox3.Text );
// DataRow dr = hRDataSet. Tables ["emp"]. Select ("id =" + textBox3.Text) [0];
Dr. BeginEdit ();
Dr ["name"] = textBox1.Text;
Dr.
ORACLE:
Delete duplicate records in the database
Select corpname, count (*) from tbcorp group by corpname having count (*)> 1
Delete from tbcorp A where a. rowid! = (Select Min (B. rowid) from tbcorp B where a. corpname = B. corpname)
The
The examples in this article describe the methods of adding, deleting, updating, and finding JDBC operations databases. Share to everyone for your reference, specific as follows:
Package Cn.com.JDBC;
Import java.sql.Connection;
Import Java.sql.
Configuration through the configuration file XML method
can use a very concise service class
The UserService class code is as follows:
Package com.swift;
public class UserService {
private Userdao Userdao;
public void Setuserdao (Userdao
Create users and assign permissions;
Copy Code code as follows:
Insert into Mysql.user (Host,user,password) VALUES ("localhost", "Phplamp", Password ("1234"))//create User
Grant all privileges in dbname.* to ' username ' @ '% ' identified
Mysql basics: create databases, add, delete, modify, and query bitsCN.com
Mysql basics: database creation, addition, deletion, modification, and query
================ View the database ================================= =
Use the SHOW statement to
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.