ODBC 存储大小

发布于 2024-08-31 23:48:05 字数 299 浏览 4 评论 0原文

我正在从 MS SQL Server 数据库中提取大量文本。我没有获取所有文本(其中包括一些 html)。文本完美存储在数据库中。但是,当我运行查询来获取数据时,它只会提取部分文本。

我使用 odbc_exec 提取数据并使用 $variable = odbc_result($runquery,"body") 存储。

如果我使用 odbc_result_all($runquery) 显示内容,我会得到部分内容;

如果我使用 echo $body; 则会得到部分内容,然后文本的一部分从一开始就很奇怪,

有大小限制吗?

I'm pulling a lot of text from a MS SQL Server database. I'm not getting all the text (which includes some html. The text is stored perfectly on the database. However, when I run the query to get the data It will only pull part of the text.

I pull the data using odbc_exec and store using $variable = odbc_result($runquery,"body").

if i display the content with odbc_result_all($runquery) i get part of the content.

if I use echo $body; i get part of the content then some garbage and part of the text from the begining. very strange response.

Is there a size limit? Any ideas what I'm missing here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

卷耳 2024-09-07 23:48:05

你检查过你到底得到了多少钱吗?我的猜测是 4KB 或 8KB。

另外,列类型是什么?文本,varchar(最大),?

我要做的第一件事可能就是下载最新的 MDAC。您可能需要查看此页面

Have you checked exactly how much you are getting? My guess is that it's either 4KB or 8KB.

Also, what is the column type? TEXT, varchar(max), ?

Probably the first thing I would do is download the latest MDAC. You might want to check this page out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文