1.postgresql层次:
column(字段) ∈ table(表) ∈ schema(模式,架构) ∈ db(数据库) ∈ postgresql(服务)。
2.shema,表的集合(容器,命名空间):
#创建
CREATE SCHEMA schema_name;
3.字段类型:
时间: date(日期),time(时间),timestamp (日期和时间)
数字: numeric 用户指定的精度,精确;
字符串: varchar(size),可变长度字符串;
真假: boolean(f/t)