[mysql] Leetcode question brushing record

181. Employees who exceed the manager's income Employee The table contains all employees, and their managers belong to employees. Every employee has one Id,In addition, there is a list of managers corresponding to employees Id. +----+-------+--------+-----------+ | Id | Name | Salary | ManagerId | +----+-------+--------+-----------+ | 1 | ...

Posted by adige on Fri, 08 Oct 2021 11:03:16 -0700

Interpretation of mysql source code -- data to file data

1, Data We talked about the log before the database drop. Today, it's very troublesome to analyze the data drop. But the principle is the same. In the previous analysis, we can clearly know that in MySql, no matter what kind of data, it enters the cache first, and then drops the disk to save. In the database, what is the most important? Of cou ...

Posted by dunn_cann on Fri, 08 Oct 2021 01:36:37 -0700

mysql dump is used in Winform to select some tables to back up mysql database regularly

scene Winform establishes a connection with Mysql8 and obtains all tables, then checks the specified table, regularly backs up the database and exports it as an sql file. And you can set the number of overwriting backups. For example, if it is set to 7, the sql file backed up for the first time will be replaced when backing up to the eighth ti ...

Posted by Gayathri on Thu, 07 Oct 2021 22:06:55 -0700

Installation of Mysql Ncaos Nginx image

Install MySql database 1. Search the mysql image on hub.docker.com 2. Pull the specified version of mysql. You can also specify the pull version, for example: docker pull mysql:8.0.23 3. Check mysql image docker images 4. Start and run mysql image (docker run is used to start a container) sudo docker run -p 3306:3306 --name mysql \ -v ...

Posted by creet0n on Thu, 07 Oct 2021 16:42:21 -0700

ES elasticsearch from getting started to giving up - syntax and protocol

1 ES data organization concept The data organization concept of ES is compared with MySQL and MongoDB as follows:( "Most popular" basis) Note that the concept of ES Index here is similar to that of MySQL database, which is easy to be confused later. What is more noteworthy is that after ES6, multiple types are not allowed in ...

Posted by MichaelHe on Thu, 07 Oct 2021 08:36:13 -0700

19 basic exercises of mysql

###Title Practice sql Download: 1. Query the number of students selected for each course; 2. Find out the student numbers and names of all students who have taken only one course; 3. Query the number of boys and girls; 4. Check the list of students surnamed "Zhang"; 5. Query the list of students with the same name and surname, and cou ...

Posted by rochakchauhan on Wed, 06 Oct 2021 14:48:32 -0700

MySql - three paradigms: permission, backup, standard design and

Authority management -- Create a new user create user sinanshao identified by '123456'; -- Change Password alter user 'sinanshao'@'%' identified by '111111'; -- Change user name rename sinanshao to sinanshao2; -- delete user drop user sinanshao; -- User authorization,Give the user all permissions -- all privileges All permissions except au ...

Posted by williamg on Tue, 05 Oct 2021 11:34:33 -0700

mysql tuning -- partition table

Mind map 1, Application scenario of partition table 1. The table is so large that it cannot be put in memory, or there is only hot data in the last part of the table, and others are historical data2. Partition table data is easier to maintain You can delete a large amount of data in batch by clearing the entire partition Optimize, check ...

Posted by helz on Mon, 04 Oct 2021 16:51:29 -0700

E-commerce data warehouse of data warehouse -- 2. Business data collection platform

1, Introduction to e-commerce business 1.1 e-commerce business process The business process of e-commerce can be illustrated by taking the browsing footprint of an ordinary user as an example. Users click the home page of e-commerce to start browsing. They may find their favorite products through classified query or full-text search. Thes ...

Posted by BANDYCANDY on Mon, 04 Oct 2021 15:39:02 -0700

Database Note 02 SQL Statement + MySQL Constraint

Database Note 02 SQL Statement (bottom) +MySQL Constraint 1. Detailed syntax of query statements in SQL: Query all data in the table: select * from surface -- It's actually recommended that you write out all the field names Query individual fields: select Field name 1,Field Name 2 from surface Conditional Query: select field from ...

Posted by MysticalCodex on Thu, 30 Sep 2021 09:21:00 -0700