문제

I have been asked to code an SQL table that has a comment field that:

must be able to store at least several pages of text

What data type should I use, and what value equates to several pages of text?

도움이 되었습니까?

해결책

In MS SQL varchar(max) stores a maximum of 2 147 483 647 characters

다른 팁

Depending on the Database you are using, there are Text or CLOB (character large object), which you should use for the column with the several pages of text.

The reason for this is, that the content of these columns are stored somewhere else in the database system (out-of-line) and don't decrease performance on other operations on this table (like e.g. aggregation of some statistaical data).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top