开发者

Which is the biggest String type in SQL?

开发者 https://www.devze.com 2023-02-07 22:46 出处:网络
Which is the biggest possible String type in SQL? TEXT? or another? DBMS: SQLITE and MYS开发者_如何学编程QLThe largest character data type in MySql is LONGTEXT (see Storage Requirements for String T

Which is the biggest possible String type in SQL?

TEXT? or another?

DBMS: SQLITE and MYS开发者_如何学编程QL


The largest character data type in MySql is LONGTEXT (see Storage Requirements for String Types), that is capable to hold 2^32-1 bytes.

SQLite does not impose any length restrictions (other than the large global SQLITE_MAX_LENGTH limit) on the length of strings, BLOBs or numeric values. The default limit for that is 1 billion, but you can change it at compile time to a maximum of 2^31-1 (see Maximum length of a string or BLOB).


CLOB.

The SQL standard uses the name CLOB (it's feature T041-02 in SQL2008), but note that other databases may have different names for it. I think TEXT is one.

0

精彩评论

暂无评论...
验证码 换一张
取 消