Home > Backend Development > PHP Tutorial > php+access+odbc 备注字段长度大于4000怎么办?能插进去。读取被截断!

php+access+odbc 备注字段长度大于4000怎么办?能插进去。读取被截断!

WBOY
Release: 2016-06-23 13:47:34
Original
1017 people have browsed it

php+access+odbc 备注字段长度大于4000怎么办?能插进去。读取被截断!!!


回复讨论(解决方案)

php.ini 中有
; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://php.net/odbc.defaultlrl
odbc.defaultlrl = 4096

修改一下吧

 

谢谢。搞定了。给后面遇到人参考

bool odbc_longreadlen ( resource $result_id , int $length )

$result_id = odbc_exec(.....odbc_longreadlen( $result_id, 65535);
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template