Postgr-sql Database CREATE TABLE

Source: Internet
Author: User

postgres=# CREATE DATABASE Vertigo_sandbox;

postgres=# \connect Vertigo_sandbox

vertigo_sandbox=# CREATE TABLE Gfxpv_testplan
vertigo_sandbox-# (
Vertigo_sandbox (# test_id bigserial not NULL,--The primary key
Vertigo_sandbox (# test_name character varying (255) not NULL,--The test name
Vertigo_sandbox (# CONSTRAINT "Pk_test" PRIMARY KEY (test_id)
Vertigo_sandbox (#);
Notice:create TABLE would CREATE implicit sequence "Gfxpv_testplan_test_id_seq"
For serial column "gfxpv_testplan.test_id"
Notice:create table/primary KEY would CREATE implicit index "pk_test" for tab
Le "Gfxpv_testplan"
CREATE TABLE
vertigo_sandbox=#

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.