久久久久久久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 個(gè)字符)
          <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 個(gè)字符的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

                  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.

                  我們不需要編輯數(shù)據(jù),只需將其顯示在網(wǎng)頁(yè)中即可.

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

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

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

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

                  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 數(shù)據(jù)庫(kù)的連接字符串:

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

                  推薦答案

                  根據(jù) FreeTDS 用戶指南,問題似乎是 FreeTDS 在與 SQL Server 交談時(shí)只能處理 varchar 最多 255 個(gè)字符由于協(xié)議定義中固有的限制".任何比這更大的數(shù)據(jù)類型都需要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.

                  您可以通過相應(yīng)地修改架構(gòu)或在查詢期間轉(zhuǎn)換數(shù)據(jù)類型來解決問題,如下所示:

                  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
                  

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

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

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)
                  <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 | 日韩不卡一区二区 | 91蜜桃婷婷狠狠久久综合9色 | 欧美日在线 | 午夜免费网站 | 成人高潮片免费网站 | 亚洲www啪成人一区二区麻豆 | 亚洲精品中文字幕乱码三区91 | 在线观看h视频 | 福利小视频在线观看 | 亚洲视频在线看 | 99亚洲精品 | 国产精品成人免费精品自在线观看 | 日韩国产一区 | 亚洲专区一区 | 久久久久亚洲精品 | 欧美色婷婷 | 日本美女黄色 | 久久久久久久久国产精品 | 中文字幕少妇 | 在线观看黄色av | 九九久久久 | 国产一区二区日韩 | 亚洲国产伦理 | 久久亚洲国产精品 | 午夜影院在线观看 | 欧美区一区二 | 国产性hd| 久久亚洲国产精品 | 精品国产乱码久久久久 | 色综合天天综合网天天狠天天 | 男女瑟瑟视频 | 日韩免费看| 精品久久久久久久 | 黄色片免费在线观看 | 日韩黄色在线视频 | 麻豆视频国产 | 99精品热| 国产一级视频在线观看 |