table of Contents
SQL basic concepts
In MSSQL , a schema is created to classify tables in the same database. For example, in a schema named Teacher, tables such as Tid, Tname can be stored, and in the schema of Student, Sid, Sname, etc. can be stored table. To put it bluntly, creating multiple schemas is to classify multiple tables to facilitate management
but! In MySQL , creating scheam and creating a database actually mean the same thing. Let’s test it with Navicat
SQL basic syntax
Here first learn how to operate a table, and learn how to manipulate the data in the table.
1. Manipulate the table
The integrity constraints will be discussed in detail in the fifth part
I put some table operations that are not in the book here
2. Manipulate data
Nothing to say, here is a picture I made before