MySQL - table integrity constraints (foreign key constraints)
1. What are integrity constraints? In order to prevent non-conforming data from being stored in the database, MySQL provides a mechanism to check whether the data in the database meets the specified conditions when users insert, modify and delete the data, so as to ensure the accuracy and consistency of the data in the database. This mechanism ...
Added by lost305 on Fri, 22 Oct 2021 00:50:39 +0300
High database installation connection
1 background
Recently, the company is making a foreign object detection equipment for military airport runway, but due to the tension between countries, the military release requires our software to adapt a domestic database; After checking, we know that the kernel used by Henkel database is postgresql, and then we have made some modifications ...
Added by designbooks59 on Wed, 20 Oct 2021 23:50:58 +0300
Tencent cloud installs the configuration database MySQL and uses SQLyog to connect
1, The first is the one click installation and uninstallation commands of MySQL (you can choose any one to execute) (1) Installation command
sudo apt-get install mysql (Download the latest version)
sudo apt install mysql-server mysql-client
(2) Uninstall command: if there is a problem, reinstall MySQL for use, such as forgetting the initial ...
Added by ziong on Tue, 19 Oct 2021 04:19:29 +0300
Introduction to JDBC
catalogue
1. Introduction to JDBC
2. Common API components
3. JDBC usage
3.1 introducing MySQL driver
3.2 jdbc connection database programming
Programming steps
4. Common API usage
4.1 Connection interface: the object of database connection
4.2 Statement interface: used to execute SQL statements
4.3 ResultSet(): returns the result set ...
Added by gidiag on Tue, 19 Oct 2021 04:08:48 +0300
Zookeeper source code analysis - things about ZKDatabase
preface:
Part of the reason why Zookeeper responds quickly is that its node data is loaded into memory. It avoids querying on disk every time a node is queried.
The ZKDatabase introduced in this article exists as an in memory database of Zookeeper.
Let's mainly look at how it loads data at startup, synchronizes changes during transaction exe ...
Added by topflight on Tue, 19 Oct 2021 01:42:52 +0300
JDBC connection to database: notes of Shang school
JDBC introduction
JDBC(Java Database Connectivity) is a common interface (a set of API s) independent of a specific database management system and common SQL database access and operation. It defines the standard Java class libraries used to access the database (java.sql, javax.sql). Using these class libraries, you can easily access database ...
Added by djopie on Mon, 18 Oct 2021 21:37:46 +0300
SQL with as recursive query
1, CTE characteristics Starting from SQL Server 2005, syntax support for CTE(Common Table Expression) is provided. CTE is a temporarily named result set defined in SELECT, INSERT, UPDATE or DELETE statements. At the same time, CTE can also be used in the definition of views. A reference to itself can be included in the CTE, so this expression i ...
Added by tracivia on Mon, 18 Oct 2021 07:31:02 +0300
SQL learning notes
1. Insert data INSERT INTO
1.1 insert complete line
INSERT INTO customers
VALUES(100,
'Tony',
'USA',
NULL,
NULL);
This example inserts a new customer into the customers table. Each column of data stored in the table is given by VALUES, and each column must be provided with a value. If a column has no value, NULL is u ...
Added by PartyMarty on Sun, 17 Oct 2021 20:46:29 +0300
[DRF] how does django restframework use redis for token authentication
1, Foreword
restframework has its own convenient authentication and permission system: Official document (token authentication)
The token of the official document is based on the authToken in the database_ Token table
Sometimes, when too much user information needs to be used in subsequent interfaces, frequent, high and distributed qu ...
Added by smileyriley21 on Fri, 15 Oct 2021 20:51:19 +0300
35-Blog Site Database-Blog Information Data Operation
35-Blog Site Database-Blog Information Data Operation (2)
Item Description
Nowadays, micro-blog and blog publishing information have become the main information publishing and dissemination system. How to manage these data, this project mainly operates on the classified information table and blog information table of blog website.
The blog s ...
Added by rich1983 on Fri, 15 Oct 2021 19:29:27 +0300