SQL CASE analysis: CASE conditional expression

Hello, everyone. I'm Mr. Tony, who only talks about technology and doesn't cut his hair. Today, we introduce an application CASE of CASE conditional expression, using the example table Click here to download. If the company is about to celebrate its 20th anniversary, it plans to distribute an anniversary gift to all employees. The rules for ...

Posted by MsShelle on Thu, 02 Dec 2021 17:56:13 -0800

Wan Da #2, why can the same Python code delete the table but not update the data

Welcome to the MySQL technical articles shared by the great SQL community. If you have any questions or want to learn, you can leave a message in the comment area below. After seeing it, you will answer itproblemRun the following Python code, but you can't always update the data:import pymysql conn=pymysql.connect( host = '127.0.0.1', user = 'y ...

Posted by douga on Wed, 01 Dec 2021 15:41:00 -0800

MySQL 10 million data, how to quickly query?

preface Interviewer: let's say, how do you query 10 million data? Brother B: direct paging query, using limit paging. Interviewer: have you practiced it? Brother B: there must be Here's a song "cool" Maybe some people have never met a table with tens of millions of data, and they don't know what will happen when querying tens o ...

Posted by nakkaya on Wed, 01 Dec 2021 00:50:34 -0800

MySQL's first experience of MyBatis 3

1, Annotation development 1.1 comparison between annotations and xml xml: as a configuration file Advantages: it can extract content (decoupling), clear configuration, convenient positioning and easy to findDisadvantages: complicated configuration Note: xml development can be replaced Advantages: fast development speed and no cumbersom ...

Posted by aff on Tue, 30 Nov 2021 23:19:57 -0800

Java web learning notes day02--JavaScript

JavaScript JavaScript overview summary Is a scripting language that is parsed and executed directly by the browser Development history In 1995, Netscape developed a client script language: LiveScript. Later, experts from SUN company were invited to modify LiveScript and name it JavaScriptIn 1996, Microsoft copied JavaScript and developed JS ...

Posted by eZe616 on Mon, 29 Nov 2021 17:17:48 -0800

Next day (DQL Data Query Language)

The second day Preparing data CREATE TABLE student ( id int, -- number name varchar(20), -- Full name age int, -- Age sex varchar(5), -- Gender address varchar(100), -- address math int, -- Mathematics english int -- English ); INSERT INTO student(id,NAME,age,sex,address,math,english) VALUES (1,'Jack Ma',55,'ma ...

Posted by ahsanmani on Sun, 28 Nov 2021 13:21:54 -0800

★★ | MySQL | how to filter out duplicate data for mass insertion?

        There are six tables in the online library with duplicate data, two of which are relatively large, one 960000 + and one 300000 +. Because the same problem has been handled before, we directly brought the last Python de duplication script. The script is very simple, that is, connect to the database, find out the dupli ...

Posted by durahman on Sun, 28 Nov 2021 13:09:09 -0800

Several methods of SQL Server traversing tables

Several ways to write SQL circular statements From: https://www.cnblogs.com/guorongtao/p/11939751.html Several ways to write SQL circular statements 1. Normal loop statement 1 2 3 4 5 6 7 8 9 10 11 12 13 14 declare @orderNum varchar(255) create table #ttableName(id int identity(1,1),Orders varchar(255)) declare @n int,@rows int inser ...

Posted by beckjo1 on Sun, 28 Nov 2021 03:27:28 -0800

MySQL written test questions (with answers)

1, Short answer 1. Briefly describe the MySQL version used by your company, and specify the specific minor version and GA time? 5.6.38 5.7.20 2017-9-13 2. Please introduce the type of database you are familiar with and the representative product name? NoSQL:Redis Mongodb memcache RDBMS:Oracle MySQL MSSQL PG 3. Please briefly describ ...

Posted by peppeto on Sat, 27 Nov 2021 23:23:41 -0800

Day461. Addition, deletion and modification of data processing - mysql

Addition, deletion and modification of data processing 1, Insert data 1.1 practical problems Solution: use the INSERT statement to INSERT data into the table. 1.2 mode 1: add VALUES Using this syntax, only one piece of data can be inserted into the table at a time. Case 1: insert data in the default order for all fields of the table ...

Posted by phpdev12 on Fri, 26 Nov 2021 18:12:50 -0800