久久久久久久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毛片| 风间由美一区二区三区在线观看 | 大香在线伊779 | 欧美日韩国产一区二区三区 | 久久精品国产99国产 | 91成人在线视频 | 国产一二三视频在线观看 | 国产成人精品一区二区 | 国产精品99久久久久久动医院 | 午夜影视大全 | 日本国产精品视频 | 久久久久久亚洲精品 | 久久精品一区二区三区四区 | 久久人体视频 | 午夜欧美 | 国产日韩欧美另类 | 欧美日韩一区二区在线 | 成人视屏在线观看 | 成人依人| 91精品国产色综合久久 | 成人免费看电影 | 国产精品免费一区二区三区四区 | 日p视频免费看 | 欧美一区二区三区在线视频 | com.色.www在线观看 | 三级黄色大片网站 | 色橹橹欧美在线观看视频高清 | 在线免费观看黄视频 | 日韩二| 亚洲精品久久久久久国产精华液 | 欧美 日韩 亚洲91麻豆精品 | 国产精品久久久爽爽爽麻豆色哟哟 | 欧美阿v| 特级生活片 | 国内精品视频在线观看 | 精品在线一区二区三区 | 国产精品美女久久久久aⅴ国产馆 | 一区在线视频 | 精品久草 | 精品一二区 | 国产成人精品一区二三区在线观看 |