Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在学习 sqlalchemy,我对应该使用什么类型来存储数据有点困惑,它甚至可以是 20000 个字符长。使用它是个好主意Unicode(20000)吗?我担心,如果文本较短,我会浪费很多内存。
Unicode(20000)
对于该类型的数据,您可以使用Text或UnicodeText。它们不要求您指定长度。