avatar
s*m
1
Is there a limit in size for the data type of text in Mysql?
I try to insert a very
large text file but the server fails to take it. If i cut
the size of the text,
i take it smoothly. Thanks.
avatar
c*d
2
Yeah, of course, why not use LONGBLOB or LONGTEXT?

【在 s***m 的大作中提到】
: Is there a limit in size for the data type of text in Mysql?
: I try to insert a very
: large text file but the server fails to take it. If i cut
: the size of the text,
: i take it smoothly. Thanks.

avatar
s*m
3

I try to use longtext for the field. However, if the string
that i create contains
new line, the server fails to accept it. For examples, if i
create a simple GUI
for mail composer, if i want to allow user to type in their
message into textarea and then
use a servlet to fetch the content in textarea as a string,
i am not able to insert
them into mysql because of the Indent and newline. How can i
do that?

【在 c****d 的大作中提到】
: Yeah, of course, why not use LONGBLOB or LONGTEXT?
avatar
c*d
4
You need escape these escape chars. Check manual please.:))

【在 s***m 的大作中提到】
:
: I try to use longtext for the field. However, if the string
: that i create contains
: new line, the server fails to accept it. For examples, if i
: create a simple GUI
: for mail composer, if i want to allow user to type in their
: message into textarea and then
: use a servlet to fetch the content in textarea as a string,
: i am not able to insert
: them into mysql because of the Indent and newline. How can i

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。