首页 > 数据库技术 > 详细

PostGr-SQL database创建表

时间:2014-08-05 19:15:00      阅读:361      评论:0      收藏:0      [点我收藏+]

 

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

PostGr-SQL database创建表

原文:http://www.cnblogs.com/kylegui/p/3892895.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!