6000 words summarizes the most basic addition, deletion, query and modification commands of MySQL

CRUD is what we often call addition, deletion, query and modification. It is also the most basic operation of the database C: create add R: retrieve find U: update modification D: Delete delete Comment: in SQL - indicates a comment, which needs to be on a single line, or use comment comment. 1, Create Let's create a student table first ...

Posted by Sakesaru on Wed, 27 Oct 2021 16:38:03 -0700

redis source code analysis -- 6. Implementation of skip list

skiplist is a very useful data structure, which is also common in interviews. Its efficiency is basically equivalent to that of red black tree, and its coding implementation is much simpler than that of red black tree 1. How to implement a dict by yourself Unlike C + +, java and other high-level languages with built-in map, C language does ...

Posted by DamienRoche on Wed, 27 Oct 2021 08:20:37 -0700

day13 package and file operations

Principle of import module 1. Introduction principle When the code is executed to the import module, the system will automatically enter the specified module and execute all the codes in the module; If the same module is imported multiple times in the same program, the corresponding code will be executed only once. # import test # import tes ...

Posted by twooton on Wed, 27 Oct 2021 05:05:45 -0700

Database backup and recovery

catalogue preface 1, Log management of MySQL 1. Overview 2. Log classification of MySQL 3. MySQL log on 4. Enter the database to check whether the corresponding log is enabled four point one   Check whether the general query log is enabled four point two   Check whether the binary log is enabled 5. View slow query log relat ...

Posted by infratl on Wed, 27 Oct 2021 03:59:55 -0700

MySQL incremental backup and recovery

catalogue preface 1, MySQL incremental backup 1. Concept of incremental backup 2. Advantages and disadvantages of incremental backup 3. Significance of binary log backup 4. Realize incremental backup 2, Incremental recovery 1. Incremental recovery mode 2. Recovery of changed data after loss of full backup 3. Recover all data lost afte ...

Posted by sseeley on Wed, 27 Oct 2021 03:28:20 -0700

JDBC implements the connection and operation of MySQL

1, JDBC introduction JDBC(Java Database Connectivity) is a common interface (a set of API s) independent of a specific database management system and general SQL database access and operation. It defines the standard Java class libraries used to access the database (java.sql,javax.sql). These class libraries can be used to access database ...

Posted by karlovac on Tue, 26 Oct 2021 03:50:47 -0700

MySQL backup and recovery - full backup and recovery (warm and cold backup)

preface Every time the data is backed up completely, that is, the whole database, database structure and file structure are backed up. What is saved is the database at the time when the backup is completed. It is the basis of differential backup and incremental backup. The backup and recovery operations of full backup are very simple and ...

Posted by ClarkF1 on Mon, 25 Oct 2021 23:44:22 -0700

Oracle learning VII - Oracle table building

Oracle create table Oracle table is the core of Oracle database and the logical basis for storing data. Oracle table is a two-dimensional data structure. The data with column fields and corresponding columns constitute a data storage structure. You can simply look at a two-dimensional table in rows and columns. Columns represent Oracle columns ...

Posted by PRodgers4284 on Mon, 25 Oct 2021 19:48:57 -0700

RedisTemplate details

I. overview of RedisTemplate 1.Redis Redis is an open source key value database, which runs in memory and is written in C language. Redis is usually used for enterprise development to implement caching. Similar products include Memcache. Memcached, etc. 2.Jedis Jedis is a Java oriented client officially launched by Redis, which provides man ...

Posted by kdreg on Mon, 25 Oct 2021 17:38:23 -0700

Chapter 56 SQL command INSERT OR UPDATE

Chapter 56 SQL command INSERT OR UPDATE Add a new row to the table or update an existing row in the table. outline INSERT OR UPDATE [%keyword] [INTO] table SET column = scalar-expression {,column2 = scalar-expression2} ... | [ (column{,column2} ...) ] VALUES (scalar-expression {,scalar-expression2} ...) | ...

Posted by travelerBT on Mon, 25 Oct 2021 16:34:57 -0700