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

Create student table using sql statement

coldplay.xixi
coldplay.xixiOriginal
2021-03-25 11:31:0639993browse

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!

Statement:
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

Related articles

See more