1,创建新表 weather
CREATE TABLE weather (
city varchar(80),
temp_lo int, -- low temperature
temp_hi int, -- high temperature
prcp real, -- precipitation
date date
);
mydb=# d
Did not find any relations.
mydb=# CREATE TABLE weather (
mydb(# city varchar(80),
mydb(# temp_lo int, -- low temperature
mydb(# temp_hi int, -- high temperature
mydb(# prcp real, -- precipitation
mydb(# date date
mydb(# );
CREATE TABLE
mydb=# d
List of relations
Schema | Name | Type | Owner
--------+---------+-------+----------
public | weather | table | postgres
(1 row)
2,数据类型
PostgreSQL支
最后
以上就是陶醉丝袜最近收集整理的关于PostgreSQL创建表基本语法1,创建新表 weather 2,数据类型的全部内容,更多相关PostgreSQL创建表基本语法1,创建新表内容请搜索靠谱客的其他文章。
发表评论 取消回复