• <tfoot id='XVLgk'></tfoot>

      <bdo id='XVLgk'></bdo><ul id='XVLgk'></ul>

  • <small id='XVLgk'></small><noframes id='XVLgk'>

    1. <legend id='XVLgk'><style id='XVLgk'><dir id='XVLgk'><q id='XVLgk'></q></dir></style></legend>
        <i id='XVLgk'><tr id='XVLgk'><dt id='XVLgk'><q id='XVLgk'><span id='XVLgk'><b id='XVLgk'><form id='XVLgk'><ins id='XVLgk'></ins><ul id='XVLgk'></ul><sub id='XVLgk'></sub></form><legend id='XVLgk'></legend><bdo id='XVLgk'><pre id='XVLgk'><center id='XVLgk'></center></pre></bdo></b><th id='XVLgk'></th></span></q></dt></tr></i><div id='XVLgk'><tfoot id='XVLgk'></tfoot><dl id='XVLgk'><fieldset id='XVLgk'></fieldset></dl></div>
      1. 字符串连接在 SQLite 中不起作用

        时间:2023-10-10

        <legend id='11rDC'><style id='11rDC'><dir id='11rDC'><q id='11rDC'></q></dir></style></legend>

              <tbody id='11rDC'></tbody>
              • <bdo id='11rDC'></bdo><ul id='11rDC'></ul>

                <small id='11rDC'></small><noframes id='11rDC'>

              • <i id='11rDC'><tr id='11rDC'><dt id='11rDC'><q id='11rDC'><span id='11rDC'><b id='11rDC'><form id='11rDC'><ins id='11rDC'></ins><ul id='11rDC'></ul><sub id='11rDC'></sub></form><legend id='11rDC'></legend><bdo id='11rDC'><pre id='11rDC'><center id='11rDC'></center></pre></bdo></b><th id='11rDC'></th></span></q></dt></tr></i><div id='11rDC'><tfoot id='11rDC'></tfoot><dl id='11rDC'><fieldset id='11rDC'></fieldset></dl></div>
                1. <tfoot id='11rDC'></tfoot>
                  本文介绍了字符串连接在 SQLite 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试执行 SQLite 替换函数,但使用函数中的另一个字段.

                  I am trying to execute a SQlite replace function, but use another field in the function.

                  select  locationname + '<p>' from location;
                  

                  在这个片段中,结果是一个 0 列表.我本来希望有一个字符串,其中包含来自 locationname 的文本和 '<p>' 文字.

                  In this snip, the result is a list of 0s. I would have expected a string with the text from locationname and the '<p>' literals.

                  推荐答案

                  尝试使用 || 代替 +

                  select  locationname || '<p>' from location;
                  

                  来自 SQLite 文档:

                  ||运算符是连接" - 它将其操作数的两个字符串连接在一起.

                  The || operator is "concatenate" - it joins together the two strings of its operands.

                  这篇关于字符串连接在 SQLite 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SQLite 插入速度随着索引数量的增加而变慢 下一篇:如何从 SQLAlchemy 映射对象中发现表属性

                  相关文章

                  1. <i id='swwaR'><tr id='swwaR'><dt id='swwaR'><q id='swwaR'><span id='swwaR'><b id='swwaR'><form id='swwaR'><ins id='swwaR'></ins><ul id='swwaR'></ul><sub id='swwaR'></sub></form><legend id='swwaR'></legend><bdo id='swwaR'><pre id='swwaR'><center id='swwaR'></center></pre></bdo></b><th id='swwaR'></th></span></q></dt></tr></i><div id='swwaR'><tfoot id='swwaR'></tfoot><dl id='swwaR'><fieldset id='swwaR'></fieldset></dl></div>

                    1. <tfoot id='swwaR'></tfoot>
                    2. <legend id='swwaR'><style id='swwaR'><dir id='swwaR'><q id='swwaR'></q></dir></style></legend>

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

                        <bdo id='swwaR'></bdo><ul id='swwaR'></ul>