【发布时间】:2015-03-09 03:37:32
【问题描述】:
是否可以查询列的最大 可能存储在其中的数据大小(以字节为单位)?例如,假设我使用
声明了一个列content = Column(LargeBinary)
那么如何查询content的信息呢?遵循this 问题中建议的inspection 方法:
table = File.__table__
field = table.c["content"]
print("max=" + field.type.length)
我得到一个max=None,而考虑到field.type=BLOB,我本以为这是max=65535。我做错了什么?
【问题讨论】:
标签: python database python-3.x sqlalchemy