ODBC 存储大小
我正在从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你检查过你到底得到了多少钱吗?我的猜测是 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.