久久久久久久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>
                            主站蜘蛛池模板: 中文字幕av亚洲精品一部二部 | 欧美啪啪 | 91久久国产精品 | 国产精品久久久久久久久久软件 | 国产免费福利在线 | 国产午夜精品一区二区三区四区 | 在线视频成人 | 国产精品视频久久 | 视频在线一区二区 | av国产精品 | 免费一级欧美在线观看视频 | 日韩色图在线观看 | 日韩精品成人网 | 人人操日日干 | 欧美精品久久久久久久久久 | 一级欧美 | 中文字幕一二三 | 国产精品看片 | 欧美日韩一区二区在线 | 国产乱码精品一区二区三区中文 | 国产精品视频网 | 国产精品夜间视频香蕉 | 特黄毛片 | 福利片在线观看 | 久久国产视频一区 | 日韩中文字幕 | 中文字幕精品一区二区三区精品 | 久久久久久久国产精品 | 人人种亚洲 | 九九九精品视频 | 国产成人精品一区二区三区四区 | 免费激情网站 | 久久综合一区 | 久久精品av | 麻豆视频在线免费观看 | 三a毛片| 在线观看中文字幕 | 国产欧美视频一区二区三区 | 日韩精品一区二区三区免费观看 | 一区二区在线 | 国内精品伊人久久久久网站 |