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

    SQL CREATE TABLE Example. The following example creates a table called "Persons" that contains five columns: PersonID, LastName, FirstName, Address, and City:

  2. SQL CREATE TABLE (With Examples) - Programiz

    In SQL, the CREATE TABLE statement is used to create tables. In this tutorial, we'll learn about creating tables in SQL with examples.

  3. SQL CREATE TABLE Syntax and Examples – The Complete Guide

    Jun 9, 2023 · Creating database tables in SQL is one of the most common tasks a developer or DBA does in a database. Learn how to create tables, what the syntax is, and see some examples in this article. This guide applies to Oracle, SQL Server, MySQL, and PostgreSQL. What Is The Create Table Command Used For? How Long Can A Table Name Be in SQL?

  4. CREATE TABLE SQL Server Syntax Examples - MSSQLTips.com

    Mar 15, 2022 · In this article we will cover how to create a new table using TSQL. In this SQL tutorial, we will look at a common task of creating a database table. We will look at some do’s and don’ts while creating a simple table as well as adding constraints and schemas.

  5. SQL CREATE TABLE Statement with Practical Examples

    Nov 4, 2022 · SQL CREATE TABLE | SELECT Statement Examples. For an example of creating a new SQL table from an existing one, suppose we want to extract a female patient table and store it in a new table called female_patient.

  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. SQL - Create Table Statement - TutorialsTeacher.com

    CREATE TABLE table_name( column_name1 data_type [NULL|NOT NULL], column_name2 data_type [NULL|NOT NULL], ... ); In the above CREATE TABLE syntax, table_name is the name of the table you want to give, column_name1 is the name of the first column, column_name2 would be the name of the second column, and so on.

  8. 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. Note that each table must be uniquely named in a database.

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

    In summary, the structure of the CREATE TABLE is as follows: CREATE TABLE tableName (fieldName data type and properties) CONSTRAINT (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.

  10. CREATE TABLE (SQL)

    When the user creates a table using 'CREATE TABLE' in SQL, he automatically becomes the owner of newly created table. The new table is created as empty table; means there is no data in it as such. But 'INSERT QUERY' can be used to insert rows in this table later on. A very simple CREATE TABLE (SQL) syntax may look like this:

Refresh