看看这个,我觉得TEXT、IMAGE都可以。ntext, text, and image (T-SQL) Fixed and variable-length data types for storing large non-Unicode and Unicode character and binary data. Unicode data uses the UNICODE UCS-2 character set. ntext Variable-length Unicode data with a maximum length of 230 - 1 (1,073,741,823) characters. Storage size, in bytes, is two times the number of characters entered. The SQL-92 synonym for ntext is national text. text Variable-length non-Unicode data in the code page of the server and with a maximum length of 231-1 (2,147,483,647) characters. When the server code page uses double-byte characters, the storage is still 2,147,483,647 bytes. Depending on the character string, the storage size may be less than 2,147,483,647 bytes. image Variable-length binary data from 0 through 231-1 (2,147,483,647) bytes. Res These functions and statements can be used with ntext, text, or image data.Functions Statements DATALENGTH READTEXT PATINDEX SET TEXTSIZE SUBSTRING UPDATETEXT TEXTPTR WRITETEXT TEXTVALID
我使用时在DELPHI里用QUERY好象不能使用(读不出来)?就象表中没有该字段一样,是为什么?
对text的读写不能直接的,需要使用stream
如果用char(varchar)最长可以有多少字节? 另:这里要再加分可以怎么加?
用char最长好像是可以有8000个字符.对text的读写要用delphi的另外两个控件好像是TDATAMEMO和TDATAIMAGE,一个用来读超大文本一个流或二进制见SQL SERVER 2000联机帮助!!!!!!!(可在微软网站下载)
text可变长度的非 Unicode 数据,最大长度为 2^31 - 1 (2,147,483,647) 个字符。ntext可变长度 Unicode 数据,其最大长度为 2^30 - 1 (1,073,741,823) 个字符。
Fixed and variable-length data types for storing large non-Unicode and Unicode character and binary data. Unicode data uses the UNICODE UCS-2 character set. ntext
Variable-length Unicode data with a maximum length of 230 - 1 (1,073,741,823) characters. Storage size, in bytes, is two times the number of characters entered. The SQL-92 synonym for ntext is national text.
text
Variable-length non-Unicode data in the code page of the server and with a maximum length of 231-1 (2,147,483,647) characters. When the server code page uses double-byte characters, the storage is still 2,147,483,647 bytes. Depending on the character string, the storage size may be less than 2,147,483,647 bytes.
image
Variable-length binary data from 0 through 231-1 (2,147,483,647) bytes.
Res
These functions and statements can be used with ntext, text, or image data.Functions Statements
DATALENGTH READTEXT
PATINDEX SET TEXTSIZE
SUBSTRING UPDATETEXT
TEXTPTR WRITETEXT
TEXTVALID
另:这里要再加分可以怎么加?