您的位置:首页 > 博客中心 > 数据库 >

PostGr-SQL database创建表

时间:2022-03-13 22:36

 

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 will create implicit sequence "gfxpv_testplan_test_id_seq"
for serial column "gfxpv_testplan.test_id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "PK_test" for tab
le "gfxpv_testplan"
CREATE TABLE
vertigo_sandbox=#

PostGr-SQL database创建表,布布扣,bubuko.com

热门排行

今日推荐

热门手游