About 828,000 results
Open links in new tab
  1. SQL CREATE TABLE Statement - W3Schools

    The SQL CREATE TABLE Statement. The CREATE TABLE statement is used to create a new table in a database. Syntax

  2. SQL CREATE TABLE Statement - SQL Tutorial

    To create a new table, you use the CREATE TABLE statement. Here’s the basic syntax of the CREATE TABLE statement. CREATE TABLE table_name ( column1 datatype constraint, column2 datatype constraint, ... ); Code language: SQL (Structured Query Language) (sql) In this syntax: table_name is the name of the table you want to create.

  3. SQL CREATE TABLE (With Examples) - Programiz

    The SQL CREATE TABLE statement is used to create a database table. We use this table to store records (data). For example, Example-- create a table named Companies with different columns CREATE TABLE Companies ( id int, name varchar(50), address text, email varchar(50), phone varchar(10) );

  4. CREATE TABLE statement in SQL Server - SQL Shack

    Apr 29, 2022 · This article taught us about the CREATE TABLE statement in SQL Server. We have learned various use cases that can be used to create a table. We learned: How to create a table in a specific schema of the database. How to create a global and local temporary table. How to create a table with constraints. How to create a table in a different filegroup.

  5. The SQL CREATE TABLE Statement - Online Tutorials Library

    SQL provides the CREATE TABLE statement to create a new table in a given database. An SQL query to create a table must define the structure of a table. The structure consists of the name of a table and names of columns in the table with each column's data type.

  6. SQL: CREATE TABLE Statement - TechOnTheNet

    This SQL tutorial explains how to use the SQL CREATE TABLE statement with syntax, examples, and practice exercises. The SQL CREATE TABLE statement allows you to create and define a table. The syntax for the CREATE TABLE statement in SQL is: column1 datatype [ NULL | NOT NULL ], column2 datatype [ NULL | NOT NULL ], ...

  7. A Guide to the SQL CREATE TABLE Statement - dbvis.com

    Mar 17, 2025 · What Is the SQL CREATE TABLE Statement? The SQL CREATE TABLE statement is used to add a new table to a database. It is one of the primary SQL Data Definition Language (DDL) commands.

  8. CREATE TABLE statement in SQL [examples and CONSTRAINTS]

    To have a better understanding on how the CREATE TABLE statement works, we are going to write and explain the statements for creating two new tables (Customers and Orders) in our database. We can use the store database that we used as an example in the CREATE DATABASE section.

  9. Create table - SQL Tutorial

    The basic syntax for creating a table using SQL is as follows: column1 datatype, column2 datatype, column3 datatype, ..... columnN datatype. The CREATE TABLE keyword is followed by the name of the table you want to create. This is followed by a list of column names and their respective data types.

  10. SQL CREATE TABLE Statement - Tutorial Republic

    CREATE TABLE table_name ( column1_name data_type constraints, column2_name data_type constraints,.... To understand this syntax easily, let's create a table in our demo database. Type the following statement on MySQL command-line tool and press enter: