mysql simple single linked list query exercise

Query all employee information.Query the number, name and position of each employee.Query all department information.Query all department numbers with employees.Query departments and positions with employees.Query the annual salary of all employees.Query the annual salary of all employees (use alias).Query the annual salary of all employees ((m ...

Posted by syed on Thu, 04 Nov 2021 08:24:50 -0700

Preventing memory overflow of jdbc underlying driver loading data mechanism -- Mysql

1. Key objects The connection object -- com.mysql.jdbc.JDBC4Connection contains all configuration parameters about mysql. The setting method is set in the form of parameters attached to the url preparedStatement object -- com.mysql.jdbc.ServerPreparedStatement 2. Data result set reading method There are three types: One is in the form ...

Posted by WolfRage on Wed, 03 Nov 2021 20:06:46 -0700

Sharding JDBC realizes the separation of reading and writing + sub database and sub table zzsh

|Overview Shardingsphere Jdbc is positioned as a lightweight Java framework and provides additional services in the Jdbc layer of Java. It uses the client to connect directly to the database and provides services in the form of jar package. It can be understood as an enhanced version of Jdbc driver, which is fully compatible with Jdbc and vari ...

Posted by Jack_Slocum on Wed, 03 Nov 2021 20:04:03 -0700

Old Du Mysql's 34 homework questions

MySQL34 homework questions 1. Name of the person who gets the highest salary in each department mysql> select e.ename,t.* from emp e join (select deptno,max(sal) as maxsal from emp group by deptno) t on t.deptno = e.deptno and t.maxsal = e.sal; +-------+--------+---------+ | ename | deptno | maxsal | +-------+--------+---------+ | BLAKE | ...

Posted by leena86 on Wed, 03 Nov 2021 18:07:17 -0700

MYSQL: mysql-8.0.11-winx64.zip installation tutorial

  Original name: mysql-8.0.11-winx64.zip installation tutorial Original Author: Fairy Tales Original address: https://www.cnblogs.com/xc1234/p/9050149.html       Download the zip installation package: MySQL8.0 For Windows zip package download address: https://dev.mysql.com/downloads/file/?id=476233 , you can enter the page without signing in. T ...

Posted by Gayathri on Wed, 03 Nov 2021 09:02:23 -0700

How to insert 100000 pieces of data in batches?

@[toc]Last week, brother song reprinted an article on batch data insertion. He talked with you about how to do batch data insertion quickly.After reading the article, a little partner put forward different opinions:Brother song had a serious chat with BUG and basically understood the meaning of this little partner, so I also wrote a test case a ...

Posted by Fjerpje on Tue, 02 Nov 2021 02:31:00 -0700

MySQL master-slave replication and read-write separation

1, Understand MySQL master-slave replication 1. Supported replication types STATEMENT: STATEMENT based replication. Execute sql statements on the server and the same statements on the slave server. mysql adopts STATEMENT based replication by default, with high execution efficiency. ROW: ROW based replication. Copy the changed content inst ...

Posted by phpchamps on Mon, 01 Nov 2021 19:11:47 -0700

mysql database master-slave replication

catalogue 1, Overview of master-slave replication and separation of read and write 1. What is read write separation? 2. Why separate reading and writing? 3. When should I separate reading from writing? 4. Master-slave replication and read-write separation 5. Replication types supported by mysq 6. Working process of master-slave replicati ...

Posted by ntjang on Mon, 01 Nov 2021 10:39:18 -0700

MySQL regular expressions, operators and multi table queries

introduction Regular expressions are special strings used to match text (character set). If you want to extract a phone number from a text file, you can use a regular expression. If you need to find all files with numbers in the middle of the name, you can use a regular expression. If you want to find all duplicate words in a text block, ...

Posted by sgs-techie on Mon, 01 Nov 2021 06:55:49 -0700

MySQL learning notes

Station B Laodu - Introduction to MySQL DQL data query language Simple query (query a single field) select Field name from Table name; //Field name and table name are identifiers, and select and from are keywords //Stress: it is common for sql statements. sql is not case sensitive, and ';' ending // Chinese aliases need to be enclosed in quot ...

Posted by sebjlan on Sun, 31 Oct 2021 20:13:45 -0700