本页介绍天翼云TeleDB数据库的列设计规范。 建议能用数值类型的,就不用字符类型。 建议能用varchar(N) 就不用char(N)、text。 建议使用default NULL,而不用default ''。 如果有国际业务,建议使用timestamp with time zone而不是timestamp without time zone,避免时间函数在对于不同时区的时间点返回值不同。
本页介绍天翼云TeleDB数据库系统视图all_col_comments的内容。 视图的作用:检索数据库中所有表和视图的列的注释信息。 名称 类型 定义 owner name 表的所有者名称 schema_name name 表所在的模式(schema)名称 table_name name 表的名称 column_name name 表的字段名 comments text 每个列的注释(col_description中的表oid和列编号)