About 1,200,000 results
Open links in new tab
  1. PostgreSQL Create Table - W3Schools

    To create a new database table using the SQL Shell, make sure you are connected to the database. If not, follow the steps in the Get Started chapter of this tutorial. Once you are connected, you are ready to write SQL statements!

  2. PostgreSQL: Documentation: 17: CREATE TABLE

    Feb 20, 2025 · CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] table_name ( [ { column_name data_type [ STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN | DEFAULT } ] [ COMPRESSION compression_method] [ COLLATE collation] [ column_constraint [ ... ] ] | table_constraint | LIKE source_table [ like_option...

  3. PostgreSQL: Documentation: 17: 2.3. Creating a New Table

    Feb 20, 2025 · You can create a new table by specifying the table name, along with all column names and their types: city varchar(80), temp_lo int, -- low temperature. temp_hi int, -- high temperature. prcp real, -- precipitation. date date.

  4. How to create a table in PostgreSQL - DatabaseFAQs.com

    Feb 17, 2025 · Learn How to create a table in PostgreSQL using Terminal and pgAdmin and Create a table in PostgreSQL with Foreign Key.

    Missing:

    • Shell

    Must include:

  5. How to Create PostgreSQL Tables With psql and pgAdmin

    Feb 15, 2024 · How to Create a Table Using SQL SHELL(psql) You can execute/run the “CREATE TABLE” command from the SQL SHELL for creating a table in PostgreSQL. Here is the basic syntax for table creation using psql: CREATE TABLE table_name( first_column data_type, second_column data_type, third_column data_type, ..... nth_column data_type ); Here ...

  6. psql command line tutorial and cheat sheet - postgres

    Creating a table (CREATE TABLE) To add a table schema to the database: postgres =# create table if not exists product ( id SERIAL , name VARCHAR ( 100 ) NOT NULL , sku CHAR ( 8 ) );

  7. PostgreSQL CREATE TABLE Statement - PostgreSQL Tutorial

    Feb 16, 2024 · To create a table in a database, you need to execute the CREATE TABLE statement using a PostgreSQL client such as psql and pgAdmin. We’ll show you step-by-step how to create the accounts table using the psql client tool.

    Missing:

    • Shell

    Must include:

  8. How to Manage PostgreSQL Databases from the Command Line …

    Jun 7, 2022 · Launch the psql application – it'll be called "SQL Shell (psql)". You will be prompted for a server, a database, a port and a username.

  9. PostgreSQL – CREATE TABLE - GeeksforGeeks

    Apr 15, 2025 · In PostgreSQL, the CREATE TABLE statement is used to define a new table within a database. It allows us to specify the table's structure, including column names, data types, and constraints, ensuring data integrity and consistency.

    Missing:

    • Shell

    Must include:

  10. PostgreSQL Create Table - w3resource

    Feb 5, 2025 · This document discusses how to create a table in PostgreSQL using the command line, pgAdmin III and phppgAdmin. For ease of understanding, each process is complemented by screenshots taken while doing.

  11. Some results have been removed
Refresh