Home > Database > SQL > Create student table using sql statement

Create student table using sql statement

coldplay.xixi
Release: 2023-01-13 00:40:51
Original
40045 people have browsed it

How to create a student table using SQL statements: First open the new SQL query and create a new table; then enter the student number and name, and the type is represented by characters; then enter the gender, age, and major; finally click Execute Can.

Create student table using sql statement

The operating environment of this article: Windows 7 system, SQL Server 2016 version, Dell G3 computer.

How to create a student table using sql statements:

1. We open a new query in sql

Create student table using sql statement

2. We create a table called student

Create student table using sql statement

3. We enter the student number and name, and the type is represented by characters

Create student table using sql statement

4. We enter gender, age, and major, and define them with appropriate types.

Create student table using sql statement

5. At this time, we press execute

Create student table using sql statement

6. We can see that the system shows that the table was successfully created.

Create student table using sql statement

Related learning recommendations: SQL video tutorial

The above is the detailed content of Create student table using sql statement. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template