Home >Database >SQL >What is the command to create a data table in sql

What is the command to create a data table in sql

王林
王林Original
2020-06-17 13:43:0318807browse

What is the command to create a data table in sql

SQL syntax for creating a data table:

CREATE TABLE table_name (column_name column_type);

For example, if we need to create a student table now, the creation method is:

What is the command to create a data table in sql

Note:

Columns between tables must be separated by English [comma];

SQL statements of tables are not case-sensitive;

SQL A statement can only use a semicolon at the end of the entire edit, or it can be used without a semicolon.

Recommended tutorial: sql tutorial

The above is the detailed content of What is the command to create a data table in sql. 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