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

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

        如何将点附加到 LINESTRING SQL

        时间:2023-08-20
        <i id='DAfpH'><tr id='DAfpH'><dt id='DAfpH'><q id='DAfpH'><span id='DAfpH'><b id='DAfpH'><form id='DAfpH'><ins id='DAfpH'></ins><ul id='DAfpH'></ul><sub id='DAfpH'></sub></form><legend id='DAfpH'></legend><bdo id='DAfpH'><pre id='DAfpH'><center id='DAfpH'></center></pre></bdo></b><th id='DAfpH'></th></span></q></dt></tr></i><div id='DAfpH'><tfoot id='DAfpH'></tfoot><dl id='DAfpH'><fieldset id='DAfpH'></fieldset></dl></div>
          <bdo id='DAfpH'></bdo><ul id='DAfpH'></ul>

          1. <tfoot id='DAfpH'></tfoot>

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

            1. <legend id='DAfpH'><style id='DAfpH'><dir id='DAfpH'><q id='DAfpH'></q></dir></style></legend>
                    <tbody id='DAfpH'></tbody>
                • 本文介绍了如何将点附加到 LINESTRING SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个带有 points 的表格,它是一个 LINESTRING.我在那里有一排,在所述列中有一些点.

                  我有一个字符串 a 形式的第二组点,我想将这些点附加到现有行.有没有办法在 MySQL 中做到这一点而不选择点作为文本,手动合并字符串然后更新行中的 points?

                  解决方案

                  MYSQL Spatial 函数不包括任何附加 LINESTRING 的解决方案,但我已经为您尝试了一种解决方法.

                  1. 获取值

                    set @gval = (select ST_AsText(route) from spatial where id =5);

                  <块引用>

                  我将该表命名为spatial",并添加了一列route",该列的数据类型为线串

                  1. 通过使用替换功能并输入所需的纬度(或点)来附加字符串

                    set @gval = replace(@gval, ')', ',8.5684875 76.8520767)');更新 spatial set route =GEOMFROMTEXT(@gval) where id=5;<​​/p>

                  这对我很有用.

                  I have a table with points which is a LINESTRING. I have a row in there which has some points in said column.

                  I have a second set of points in the form a of a string, I would like to append these points to the existing row. Is there any way to do this in MySQL without selecting the points as text, manually merging the strings then updating points in the row?

                  解决方案

                  MYSQL Spatial function does not include any solution for appending a LINESTRING but there is a workaround which i have tried for you.

                  1. Get the value

                    set @gval = (select ST_AsText(route) from spatial where id =5);

                  I named the table as 'spatial' and added a column as 'route' which is of datatype linestring

                  1. Appended the string by using the replace function and entering your required lat lon (or point)

                    set @gval = replace(@gval, ')', ',8.5684875 76.8520767)'); Update spatial set route =GEOMFROMTEXT(@gval) where id=5;

                  this works good for me.

                  这篇关于如何将点附加到 LINESTRING SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:将从不同查询返回的行附加到一个 下一篇:创建/附加表,其中包含按不同类别分组的值的总

                  相关文章

                  最新文章

                  1. <tfoot id='90PYt'></tfoot>

                    <small id='90PYt'></small><noframes id='90PYt'>

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

                      <legend id='90PYt'><style id='90PYt'><dir id='90PYt'><q id='90PYt'></q></dir></style></legend>