postgresql_数据结构

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/du1055669885/article/details/83751595

1.postgresql层次:

column(字段) ∈ table(表) ∈ schema(模式,架构) ∈ db(数据库)  ∈  postgresql(服务)。

2.shema,表的集合(容器,命名空间):

#创建
CREATE SCHEMA schema_name;

3.字段类型:

时间: date(日期),time(时间),timestamp (日期和时间)

数字: numeric 用户指定的精度,精确;

字符串: varchar(size),可变长度字符串;

真假: boolean(f/t)

猜你喜欢

转载自blog.csdn.net/du1055669885/article/details/83751595