Summary of sql statements and common functions in Oracle
sql and functions commonly used in oracle
TO_DATE, EXISTS, CASE... WHEN functionLISTAGG function and OVER PARTITION BY functionFind out whether a value exists in the whole database in Oracle databaseoracle sql statement specification, creating columns, adding columns, deleting columns, functions, etcFunction that returns the time difference b ...
Posted by bradsteele on Thu, 27 Jan 2022 19:06:38 +0100
docker installs mysql to simulate a master-slave database
Pull mysql image
docker pull mysql:5.7.36
Create container
Create the following folders master slave1 slave2
Create master database
docker run \
--name mysql-master \
-p 3307:3306 \
-v /usr/local/docker/mysql/data/master:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=root \
-d mysql:5.7.36
Create slave database 1
docker run \
--name m ...
Posted by jkurrle on Thu, 27 Jan 2022 09:56:53 +0100
Backup and restore of Dameng database
1, Basic knowledge
1. Role of backup and restore:
Backup mainly plays the role of data disaster recovery. It is an effective means to ensure data security in case of database failure; By restoring the backup set data, the data can be restored to the state before the database failure.
2. Basic principles of backup, restore and recovery:
In D ...
Posted by mlschutz on Thu, 27 Jan 2022 08:28:35 +0100
Brief introduction and basic use of Mybatis
1. History of database operation framework
1,JDBC
JDBC (Java database connection) is a Java API used to execute database SQL statements. It can provide unified access to a variety of relational databases. It is composed of a group of classes and interfaces written in Java language. JDBC provides a benchmark, which can build more advanc ...
Posted by kurtsu on Thu, 27 Jan 2022 05:37:19 +0100
MySQL database learning log: database overview and SQL language foundation
MySQL database
Database overview
Database related concepts
DB
Database: it is "a warehouse that organizes, stores and manages data according to data structure". Is a long-term storage in the computer, organized, shareable, unified management of a large number of data collection. It is essentially a file system, which exists on ...
Posted by nerotic on Thu, 27 Jan 2022 04:03:59 +0100
MySQL introduction and installation
2, MySQL introduction and installation
1 Introduction
Mysql database is subordinate to MySQL AB company, headquartered in Sweden and later acquired by Oracle.
Official website: https://www.mysql.com/
2 advantages
Low cost: open source, generally free to use.
High performance: fast execution.
Simple: easy to install and use.
3. MySQL ver ...
Posted by bastienvans on Thu, 27 Jan 2022 02:01:20 +0100
DQL related operations
-DQL operation table record - query [ key ]
7.1 basic query syntax
select Field name to query from Table name [where condition]
7.2 simple query
7.2.1 query records of all rows and columns
grammar
select * form surface
Query all the columns in the commodity table
select * from product;
7.2.2 query records of specific columns in a t ...
Posted by markmuir on Thu, 27 Jan 2022 00:36:37 +0100
Super hard core learning manual series 1 - explain the knowledge points of MySQL in simple terms, which is necessary for learning and collecting
I am participating in the CSDN "new programmer" award-winning essay solicitation There are thousands of people in the vast sea. Thank you for seeing here this second. I hope my article will help you!
May you keep your love and go to the mountains and seas in the future!
1. Basic knowledge of database
1.1 why learn database
...
Posted by vargadanis on Wed, 26 Jan 2022 21:33:55 +0100
SQL retention analysis (next day retention, multi day retention) and optimization scheme for continuous active population
1. Description of index caliber
Retained on the next day: the number of users who use the product on the first day and still use it on the second day
Multi day retention: the number of users who use the product on the first day and still use it after many days
Number of people continuously active: how many people continuously use products
2 ...
Posted by kontesto on Wed, 26 Jan 2022 21:18:10 +0100
Database view detailed notes. The advantages of view, the execution rules of DML operation in view, how to reject DML operation in view, and what is built-in view
view
Views are other objects in the database
1. What is a view
You can create a view of a table to represent a logical subset of data or a combination of data. A view is a logical table based on a table or another view. A view does not contain its own data. It is like a window through which you can view or change the data in the table. T ...
Posted by MagicMikey on Wed, 26 Jan 2022 19:53:21 +0100