久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='n58Dn'></tfoot>
<i id='n58Dn'><tr id='n58Dn'><dt id='n58Dn'><q id='n58Dn'><span id='n58Dn'><b id='n58Dn'><form id='n58Dn'><ins id='n58Dn'></ins><ul id='n58Dn'></ul><sub id='n58Dn'></sub></form><legend id='n58Dn'></legend><bdo id='n58Dn'><pre id='n58Dn'><center id='n58Dn'></center></pre></bdo></b><th id='n58Dn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='n58Dn'><tfoot id='n58Dn'></tfoot><dl id='n58Dn'><fieldset id='n58Dn'></fieldset></dl></div>
  • <legend id='n58Dn'><style id='n58Dn'><dir id='n58Dn'><q id='n58Dn'></q></dir></style></legend>

    1. <small id='n58Dn'></small><noframes id='n58Dn'>

        • <bdo id='n58Dn'></bdo><ul id='n58Dn'></ul>

        MS SQL Server 上的 ODBC 查詢僅在 PHP PDO (FreeTDS) 中返

        ODBC query on MS SQL Server returning first 255 characters only in PHP PDO (FreeTDS)(MS SQL Server 上的 ODBC 查詢僅在 PHP PDO (FreeTDS) 中返回前 255 個字符)
          <bdo id='6bsis'></bdo><ul id='6bsis'></ul>

          <i id='6bsis'><tr id='6bsis'><dt id='6bsis'><q id='6bsis'><span id='6bsis'><b id='6bsis'><form id='6bsis'><ins id='6bsis'></ins><ul id='6bsis'></ul><sub id='6bsis'></sub></form><legend id='6bsis'></legend><bdo id='6bsis'><pre id='6bsis'><center id='6bsis'></center></pre></bdo></b><th id='6bsis'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6bsis'><tfoot id='6bsis'></tfoot><dl id='6bsis'><fieldset id='6bsis'></fieldset></dl></div>
        • <legend id='6bsis'><style id='6bsis'><dir id='6bsis'><q id='6bsis'></q></dir></style></legend>
                  <tbody id='6bsis'></tbody>

                <small id='6bsis'></small><noframes id='6bsis'>

                • <tfoot id='6bsis'></tfoot>
                • 本文介紹了MS SQL Server 上的 ODBC 查詢僅在 PHP PDO (FreeTDS) 中返回前 255 個字符的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我目前正在嘗試從我們限制從 Linux Web 服務器訪問的 SQL Server 數據庫視圖中提取一些數據.

                  I'm currently trying to pull some data from a SQL Server database view that we have restricted access to from our Linux web server.

                  我們不需要編輯數據,只需將其顯示在網頁中即可.

                  We don't need to edit the data just display it in a webpage.

                  一切看起來都很好,直到我們嘗試輸出并且只獲取文本字段的前 255 個字符.

                  It all looks fine until we try to output and only get the first 255 characters of a text field.

                  有誰知道這是否是通過 PHP::PDO 使用 FreeTDS 的問題,或者它是否應該可以正常工作?我見過其他人也有類似的問題,但似乎沒有多少答案.

                  Does anyone know if this is a problem with using FreeTDS through PHP::PDO or if it should work fine? I've seen other people out there having similar problems, but there don't seem to be many answers.

                  我將其用作 MS SQL 數據庫的連接字符串:

                  I'm using this as the connection string for the MS SQL db:

                  $dbConn = new PDO("odbc:Driver=FreeTDS;DSN=OURDSN;UID=WWWUser;PWD=ourpassword");
                  

                  推薦答案

                  根據 FreeTDS 用戶指南,問題似乎是 FreeTDS 在與 SQL Server 交談時只能處理 varchar 最多 255 個字符由于協議定義中固有的限制".任何比這更大的數據類型都需要text.

                  According to the FreeTDS User Guide, the issue seems to be that FreeTDS can only handle varchar up to 255 characters when talking to SQL Server "due to limitations inherent in the protocol definition". Anything bigger than that needs to be data type text.

                  您可以通過相應地修改架構或在查詢期間轉換數據類型來解決問題,如下所示:

                  You can resolve the issue either by modifying your schema accordingly, or converting the data type during your query, like this:

                  SELECT CAST(mycol as TEXT) FROM mytable
                  

                  這篇關于MS SQL Server 上的 ODBC 查詢僅在 PHP PDO (FreeTDS) 中返回前 255 個字符的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                  <i id='XYWpX'><tr id='XYWpX'><dt id='XYWpX'><q id='XYWpX'><span id='XYWpX'><b id='XYWpX'><form id='XYWpX'><ins id='XYWpX'></ins><ul id='XYWpX'></ul><sub id='XYWpX'></sub></form><legend id='XYWpX'></legend><bdo id='XYWpX'><pre id='XYWpX'><center id='XYWpX'></center></pre></bdo></b><th id='XYWpX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='XYWpX'><tfoot id='XYWpX'></tfoot><dl id='XYWpX'><fieldset id='XYWpX'></fieldset></dl></div>
                    <legend id='XYWpX'><style id='XYWpX'><dir id='XYWpX'><q id='XYWpX'></q></dir></style></legend>

                      <small id='XYWpX'></small><noframes id='XYWpX'>

                      • <bdo id='XYWpX'></bdo><ul id='XYWpX'></ul>
                          <tbody id='XYWpX'></tbody>
                            <tfoot id='XYWpX'></tfoot>
                            主站蜘蛛池模板: 亚洲国产aⅴ成人精品无吗 国产精品永久在线观看 | 午夜亚洲 | 亚洲日韩欧美一区二区在线 | 精品福利在线 | 久久久久久国产精品 | 99re6在线视频 | 黄色免费av | 美女久久| 亚洲在线一区二区 | 日韩精品视频一区二区三区 | 91在线精品秘密一区二区 | 在线国产一区二区 | 自拍偷拍亚洲视频 | 色婷婷综合久久久久中文一区二区 | 精品国产一区二区久久 | 亚洲第一天堂无码专区 | 国产在线精品一区二区 | 国内精品视频在线观看 | 日日草夜夜草 | 国产精品久久久久久久久久久久久久 | 中文精品视频 | 午夜资源 | 成人黄色电影在线观看 | 亚洲成人播放器 | 99精品一区二区三区 | 91精品国产综合久久久动漫日韩 | www.玖玖玖 | 久久国产激情视频 | 午夜精品网站 | 国产日韩精品视频 | 日韩五月天 | 国产在线91 | 黄色免费在线观看网站 | 亚洲91精品| 性欧美xxxx| 精品不卡 | 一区二区三区视频在线 | 亚洲综合在线视频 | 自拍偷拍中文字幕 | 九九久久精品 | 国产成人影院 |