选择或创建语句中的数据库列 [英] Database Columns In Select or create statements
问题描述
可能重复:
PostgreSQL选择查询中的最大列数是多少?
Possible Duplicate:
What is the maximum number of columns in a PostgreSQL select query
我要开始一个新项目,需要大量的表和列,使用postgres我只想问这是创建postgres表中的列数是有限的,如果是,那么CREATE和SELECT语句中的列数的MAX值是多少?
I am going to start a new project which requires a large number of tables and columns , using postgres I just want to ask that is number of columns in creating postgres tables are limited , If yes then what would be the MAX value for number of columns in CREATE and SELECT statements?
推荐答案
有一个官方 PostgreSQL关于页面上的限制列表。我引用:
Limit Value
Maximum Database Size Unlimited
Maximum Table Size 32 TB
Maximum Row Size 1.6 TB
Maximum Field Size 1 GB
Maximum Rows per Table Unlimited
Maximum Columns per Table 250 - 1600 depending on column types
Maximum Indexes per Table Unlimited
报价仍然适用于Postgres 9.5。
如果您接近这些限制,很可能你正在做一些错误的事情。
Quote is still true for Postgres 9.5.
If you get anywhere close to those limits, chances are you are doing something wrong.
这篇关于选择或创建语句中的数据库列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!