Oracle Foreign keys only have cascade deletion and no Cascade update, but sometimes such functions may be required in the system, so the implementation process is recorded here.
There are two constraints in Oracle: latency constraint and non-latency
The redo path is incorrect today, and the standby uard database cannot be open:
ORA-01275: The add logfile operation is not allowed when backup file management is automatically performed
Let's take a look at the following:
Let's take a look at the
1. Modify the DBSNMP password:
To reconfigure the DBCONSOLE, you need to enter the DBSNMP password, but any password will display an error and must be modified in advance.
SQL> alter user dbsnmp identified by xxx;
2. delete users created on the
Add recordInsert into Table Name (field name, field name) VALUES (value, value );Delete recordDelete from table name WHERE condition (distinct Al can be left blank)Modify recordUPDATE table name SET field = value, field = value WHERE ConditionQuery
Use MongoDB in C ++:
Add Field{$ Set: {"field": 1 }})Delete Field{$ Unset: {"field": 1 }})
Query elements in an array{"Keyword": {$ all: ["location", "other"]}
Add array elements (repeated elements are not added){"$ AddToSet": {"keyword": {"$
First, popularize the basic concepts:
PL/SQL is a programming Language that combines Procedural Language and Structured Query Language (SQL.
The PL/SQL block corresponds to a small piece of code.
Applicable instructions:
1. Sometimes you may need to
1. create user groups and users
1) Add a user group:
Groupadd oinstall
Groupadd dba
2) Add a user:
Useradd-g oinstall-G dba-d/home/Oracle-m oracle
{-G indicates the user group,-G indicates the user's additional group,-d indicates the user's main
Em for configuring non-default listening PORT (1521) (※parameter name-SID and-PORT must be in uppercase)Emca-config dbcontrol db-repos recreate-SID t11g-PORT 1715Dynamic listening must be configured:(You need to manually register listener for
1. To enable Python to operate the Oracle database, first install the cx_Oracle package. You can obtain the installation package through the following address:[Plain]
Http://cx-oracle.sourceforge.net/
2. You also need some class libraries of
CurrentMongoDBComplex dataStatisticsMapReduce is required for computing, including group by queries that are commonly used in SQL. It is troublesome to write a reduce statement. In MongoDB2.1, a new data statistics computing framework will be
There are four functions that support regular expressions in Oracle:
1. REGEXP_LIKE: similar to LIKE
2. REGEXP_INSTR: similar to INSTR
3, REGEXP_SUBSTR: similar to SUBSTR
4. REGEXP_REPLACE: similar to REPLACE
They are used in the same way as Oracle
MySQL description:
An article library contains two tables: category and article. There are 10 classified data entries in category. There are 0.2 million articles in articles. In article, there is a "article_category" field that corresponds to the
Before performing data operations, you must first have several Complete tables. Create two tables, tableA and tableB
Create table tableA (id integer, name varchar (25), age number );Insert into tableA values ('20170101', 'jack', '25 ');Insert into
1. view the data in the first three rows. If the column alias does not existASClause. The derived column is named 2, which indicates that it is the second column in The result set.
Db2 => select name, salary + comm from staff fetch first 3 rows
1. Create the same directory as the 9i data file, control file, and redo file on the target server where Oracle 10g software is installed (the data files of the two databases must be in the same location)
2. Shut down the 9i source database, copy
Oracle 11g creates a function to obtain the current trace file
Create or replace function current_trace return varchar2
Is
V_file varchar2 (100 );
Begin
Select par. value | '/' | ins. instance_name | '_ ora _' | pro. spid | '. trc' into v_file
Oracle peer groupingUse the sys_connect_by_path (column, '') function as an example ^.Table Structure: create table test (bookid char (3) not null, author varchar2 (10) not null); insert into test values ('001', 'jack '); insert into test values ('00
When I read the Mysql manual again today, I see a function concatenation field that is ignored at ordinary times. In fact, it is simple to use mysql functions to process strings. The calculated field is usually used, but the spliced field is ignored.
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