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

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

WBOY
WBOYOriginal
2016-06-23 13:47:34963browse

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);

Statement:
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