Introduction to JOIN clause in SQL

This article mainly introduces the relevant knowledge of JOIN clause in SQL (Structured Query Language), and introduces the common usage of JOIN through usage examples. Note: the usage example in this article is for MySQL database. 1 OverviewThe JOIN clause in SQL is used to combine rows from two or more tables. In actual database applications, ...

Added by fukas on Mon, 03 Jan 2022 23:22:33 +0200

19_ Syntax differences between MySQL and SQLServer (super-detailed)

1. Summary One of the hardest things for many beginners learning MySQL before learning SQL Server is that there are subtle differences in their grammar, such as the absence of keywords such as modify and change in SQL Server, or every statement in MySQL. At the end, SQL Server uses the go keyword to indicate the end of a batch statement, a ...

Added by Ned on Mon, 03 Jan 2022 00:38:22 +0200

Stop writing loops! mybatis inserts data in batches and updates the collection list in batches. Isn't it fragrant?

Firstly, the mybatis framework encapsulates sql statements and executes them through tag and attribute parsing in the form of xml. We know that the sql statements inserted into the table are: INSERT INTO table name (column 1, column 2,...) VALUES (value 1, value 2,...) During the insertion process, the database will add transactions by d ...

Added by webtailor on Thu, 30 Dec 2021 14:31:58 +0200

SQL Server GROUP BY grouping query and INNER JOIN... ON connection query

SQL Server group query and connection query Group query using GROUP BY Multi column grouping query Group filtering using HAVING clause Classification of multi table join queries External connection query 1, Group query using GROUP BY The above type of query is called group query in SQL Server. Group query is implemented by GROUP BY cl ...

Added by kutyadog on Wed, 22 Dec 2021 02:37:42 +0200

Integration of database knowledge points: database related operations

Composition of database SQL Server database consists of a set of operating system files, which are divided into two categories: data files and log files. 1. Data file: contains data and objects, such as tables, indexes, stored procedures and views. Data file typecharacteristicMaster data fileIt contains database startup information and ...

Added by Xurion on Thu, 16 Dec 2021 16:38:47 +0200

Getting started with ASP.NET MVC - using database (SQL server)

Create a connection string and use SQL Server LocalDB MovieDBContext the class you create will handle the task of connecting to the database and map the Movie object to the database record. But one question you might ask is how to specify the database to which it will connect. In fact, it is not necessary to specify the database to use, and th ...

Added by tjohnson_nb on Sun, 28 Nov 2021 19:56:59 +0200

Database Experiment 7 - view, index and data security

Experiment 7: view, index and data security 1, Experimental purpose 1. Master view characteristics; 2. Master the creation and management of views using SQL Server 2008; 3. Master the creation and management of indexes in object resource manager and T-SQL statements; 2, Experimental class hours 2 class hours 3, Experimental requirements 1 ...

Added by raku on Sun, 21 Nov 2021 06:00:10 +0200

Configure SQL Server 2019 AG in Azure CentOS VM-

Preceding text Assume you have basic knowledge of Azure and SQL Server HA Assume you have basic knowledge of Azure Cli The goal is to create an availability group with three replicas on Azure Linux VM and implement listener and Fencing configuration Environmental Science SQL Server 2019 Developer on Linux Azure VM Fencing agent Azure Cli imp ...

Added by Trey395 on Wed, 29 Apr 2020 12:50:01 +0300

Using SMO to programmatically generate SQL Server table data

As a part of ETL, sometimes you need to generate the Insert script of the data, and then copy the human flesh to another place for execution. Students who are familiar with SMSS all know that there is a task of generating scripts, which can generate database create scripts, and in fact can also produce data in tables. Automatic ETL can't even e ...

Added by michalchojno on Mon, 06 Apr 2020 17:33:04 +0300

sql server writes archive generic template script to automatically delete data in batches

The blogger has written archive scripts for many projects. For the script development of deleting data, it must be the simplest delete statement at the beginning. Then, because of the large amount of data in some tables and the large number of indexes, it will be found that deleting data is very slow and affects the normal use of the system. Th ...

Added by hori76 on Sun, 06 Oct 2019 13:21:46 +0300