希望能对你有帮助:according to the people at php.net: "Unfortunately the ODBC functionality is based off of ODBC v2, which means NTEXT, TEXT, and pretty much any UNICODE is unknown to PHP. Marking this as closed as there is no way to really fix this, without overhauling the entire ODBC system (which is in progress, but no promises)" and another response to the same problem: "This is not an error in the MS SQL extension, as you are using ODBC functions to fetch data. Microsofts new datatypes ntext and nvarchar is not suported in the MS SQL extension, as they are not supported in Microsofts C-library. The will always be returned as a varchar with a max length of 255 bytes. " Fortunately I was able to come up with a cluggy solution. I solved it using a cast: SELECT cast ( field_name AS TEXT ) AS field_name. Unfortunately you must also run the following query PRIOR to running the select. @mssql_query( "SET TEXTSIZE 1024000", $db_connect); The TEXTSIZE sets the max length of field content that should be returned. Just thought I'd post a solution to something that was highly frustrating and annoying to me. I've received lots of help from php's community in the past and thought I'd give somrthing back ;-) Hope this helps someone .
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货