Create Table In PostegreSQL using command

 To create a table in PostgreSQL using the command on query tools inside pgadmin write the bellow code. Make sure you change the table name with your desired name and the primary key you want.

CREATE TABLE Employees(
    EmployeeID int,
    FirstnName varchar(255),
    LastName varchar(255),
    JobTitle varchar(255),
    PRIMARY KEY(EmployeeID)
);

0 Comments