数据库为mysql,需要把旧门店记录的note字段的资料追加到新门店的note资料的后面

旧记录id为old_terminal_id,新记录id为new_terminal_id,提供格式如下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgIAAAExCAIAAACBIV0FAAAgAElEQVR4nO2dz88cyXnf55i/w4bvexpgLvZNUQLLkROEXEYb/5C0vVpba0UWRdORsVp5FUW7l6EX2Nz3MmCwxMIEwQFCIBcCuwFj7B5yCcAho1CEbSVBsrYse1cUl5XDzLzTVfU89aN7ut6u6c8HdSB7aqr7nf4+9e360VWzHz3+iZP+239/8J/v/pez1P7o7pvPmf/xlbLphXcuf+HutV994doLxU/9lbtvPuf/PiQ/vf/W8/MrNw9H3rs6v/j2++d9VVWkm7fv3Lx959wvo6LkiO3dK3PElpV8vc2c/zseINjA//xq2fQv3/mzf20++MILF77wqPSpv4oNJCYnMl1XIOkJG8hNrrruvX1h/vy1e+d/YbWkiA34HiDYwKMXi6Ybn3vtxovm0YXX5p+7W/jUj17EBhKTFZmEZU7CBnKT95Bx8/J8fvm987+wWlLIBkQPEGzgx03JdPfb//jujxvz49965+L8tfeKntr8uMEGEtP7bz0/P4AHZCRsIDdhAz2TagOaBwg28Pilgum337nyxUePXzKPX3r01q/Or1wse/aXsIHEZEfmR9cuzukUSkzYQG7CBnom2QYCHiDYwF9+rVz6r198ofWQOb/4xUclz/6XX8MGEhPdtZ0TNpCbJLFhAxlJsIGwBwg28Fcvl0t//vnX/nz/77/4zRfmv/bOXxQ8+1+9jA0kJh7QOidsIDcJ09LmV98976uqKAk2EPYAwQb++veLpbt/9Pm7h/9++Z2L89dulju7+evfxwYSEw9onRM2kJuECaP0QOakY9jA//p6qfSVd67+80etI4/e/rX51S8VvICvYwOJSRgb4AEtLWEDuakttnevMCUhOx3DBv73K0XSV9/Zzj25+qXdkVv/ZDdCcHZk+IQNpKR3r8xdeJ0nOWEDWckVG0rLT8ewgf/zB9NJ2ABp6IQNkAqn+FvE4XT3zefM//3GdBI2QBo6YQOkwuk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LJtiCEm4sIVoN0c3D5JjbR4kYcOJq8c5WM7G14aN7BaKx2gjbgKao3HKEDFFVq/ueCnvr2tvO/OjxzcsnbgNnnWly3+/uqLuFoDGEaEVIO32176e4nfwhROLPXcbLlLKrZXzHWDRWG6HqW1eUS5dtxiKqFk8pFCO0BiZgA1uEPSbtLcT9HekJ0Wrwxb4z/2bt/NvJsbvjSa2BPBvY1xaR/cfQWG3oNhBSlEN2h1DrDJqq5QvzpezYwGY5aRtw633fBwjRShCf9duTKpRJQPZgW2RswN3a1Zvb4TfX7VOLV4nGakOzgYii/LwdN5vUVK20L6I2sJ0pNFkb8LqBvAOEaBWI1euhGl4I0zbEbldLH26lvw++8KbDnknYV6V11EJFBB66g4qKFpGQIaRqbCABzwb8aRzYQIW41XXroN+L2hoHSh5APjzrRyb+2FciB6USk1AR6kBs6nTiLsMCh8OqqhP9CRvABk4M0QOUMDprM4Re1AmGpzB6FDitGJTYQP0oVX6yojoOC0RUbcS2ZsoQ8bRtgE6hylE8wGgdq6GWeMq0npgLOIWIRSqPZlAR0R4dY0xAUZ2HBeKqTmunYAMMEZ8KugcY5bkpWNMn2IA0ozh4VqFMLSahIvrZQOdhgRRVK6+PSbMSHBu49/aF+fzyexO0ASaM1krQA4wx/oCtNpfIKtEqcN24Nbo/3Ou92uNkib7TZtBYffSxga7DAq0zB1UtvT4jL2Nlvz42PxBvE1RsA/LwHq+P1Yg1cttGWhQooc/fyEHb7vEVLSdpmZnIawNorBK0/v+s9mWfeaLtHEHRxRQ30aXlnB9OGCHQflBCFIYGjUFhpmkD3SFEYWjQGBQGG8iDEIWhQWNQGGwgD0IUhgaNQWGwgTwIURgaNAaFwQbyIERhaNAYFEawgZu372Sl+w8eTietAABOHVoDIVY8qcHAoDEozIpOoSwIURgaNAaFwQbyIERhaNAYFAYbyIMQhaFBY1AY3wb+Pw//Eu5knhfbAAAAAElFTkSuQmCC" alt="" />

共有2000多需要转换。

存在多条旧门店合并到同一个新门店的情况,最终新门店的note字段需要自己note原资料加上全部旧门店的note资料。

在excel中拼接SQL:

select @note1:=max(note) from cmdm_terminal a where a.terminal_id=149356;update cmdm_terminal set note=concat(note,@note1) where terminal_id=147611;
select @note2:=max(note) from cmdm_terminal a where a.terminal_id=280149;update cmdm_terminal set note=concat(note,@note2) where terminal_id=147663;
select @note3:=max(note) from cmdm_terminal a where a.terminal_id=291854;update cmdm_terminal set note=concat(note,@note3) where terminal_id=147692; ......

excel中是这样写的:

=CONCATENATE("select @note",A2,":=max(note) from cmdm_terminal a where a.terminal_id=",B2,";update cmdm_terminal set note=concat(note,@note",A2,") where terminal_id=",D2,";")

mysql中使用concat例子的更多相关文章

  1. mysql中的concat,concat_ws(),group_concat()

    mysql中的concat,concat_ws(),group_concat() 说明: 本文中使用的例子均在下面的数据库表tt2下执行:     一.concat()函数 1.功能:将多个字符串连接 ...

  2. [转]MySQL中函数CONCAT及GROUP_CONCAT

    一.CONCAT()函数 CONCAT()函数用于将多个字符串连接成一个字符串. 使用数据表Info作为示例,其中SELECT id,name FROM info LIMIT 1;的返回结果为 +-- ...

  3. 使用Mysql中的concat函数或正则匹配来快速批量生成用于执行的sql语句

    背景介绍 今天需要给一张表里面补数据,需要按照行的维度进行update,如果是个别数据那么直接写update语句就可以了,但是场景要求的是将整表的数据进行update,要实现这个需求就不能只靠蛮力了, ...

  4. MySql中的concat()相关函数

    concat 函数的基本应用一: SQL CONCAT函数用于将两个字符串连接起来,形成一个单一的字符串.试试下面的例子: SQL> SELECT CONCAT('FIRST ', 'SECON ...

  5. MySQL中函数CONCAT及GROUP_CONCAT

    一.CONCAT()函数CONCAT()函数用于将多个字符串连接成一个字符串.使用数据表Info作为示例,其中SELECT id,name FROM info LIMIT 1;的返回结果为+----+ ...

  6. mysql中的concat函数,concat_ws函数,concat_group函数之间的区别

    一.CONCAT()函数CONCAT()函数用于将多个字符串连接成一个字符串.使用数据表Info作为示例,其中SELECT id,name FROM info LIMIT 1;的返回结果为+----+ ...

  7. MySQL中函数CONCAT及GROUP_CONCAT函数的使用

    一.CONCAT()函数 CONCAT()函数用于将多个字符串连接成一个字符串. 以数据表[user]作为实例: SELECT USER_NAME, SEX FROM USER WHERE USER ...

  8. MySQL中的concat函数

    select concat('数据库',cast('aa' as char),'查询') as str

  9. MySQL中CONCAT()的用法

    MySQL中CONCAT()的用法 在日常开发过程中,特别是在书写接口的时候,经常会遇到字符串拼接的情况,比如在返回图片数据时,数据库里往往存储的是相对路径,而接口里一般是存放绝对地址,这就需要字符串 ...

随机推荐

  1. android 77 fragment

    fragment是3.0之后才有的,之前平板是3.0专用,后来手机和平板都用3.0 Activity: package com.itheima.fragment; import android.os. ...

  2. Qt 国际化之二:多国语界面动态切换的实现

    第一步在你的pro里面加入 TRANSLATIONS = myexec_zh.ts (根据对应的ts文件修改)第二步用lupdate 操作pro 将要翻译的提取到ts文件 命令是 lupdate my ...

  3. 源码解析之–YYAsyncLayer异步绘制

    来源:伯乐在线专栏作者 - Shelin 链接:http://ios.jobbole.com/86878/ 点击 → 了解如何加入专栏作者 前言 YYAsyncLayer是异步绘制与显示的工具.最初是 ...

  4. 通过开发工具发布web应用到tomcat服务器中--对于小白,大神可以忽略不看,勿喷,谢谢

    需要的工具 MyEclipse和TomCat 本人用的是MyEclipse2014和TomCat7 TomCat结构图 第一步:在MyEclipse中配置TomCat 如图所示: 第二步:创建Web项 ...

  5. Android WebView的loadData方法注意事项

    loadData()中的html data中不能包含'#', '%', '\', '?'四中特殊字符,出现这种字符就会出现解析错误,显示找不到网页还有部分html代码.需要如何处理呢?我们需要用Url ...

  6. Mybaitis配置总结

    在mybatis-config.xml中配置分页插件,插件配置必须放在mapper前面 <plugins> <plugin interceptor="com.rrtong. ...

  7. Summary: How to calculate PI? Based on Monte Carlo method

    refer to: http://www.stealthcopter.com/blog/2009/09/python-calculating-pi-using-random-numbers/ Duri ...

  8. .net+easyui系列--datagrid

    加载CSS <link href="../../Public/easyui/SiteEasy.css" rel="stylesheet" type=&qu ...

  9. [Unity官方文档翻译]ScrollRect

    官方地址:http://docs.unity3d.com/Manual/script-ScrollRect.html 一边学习一边翻译不知效率如何= = Scroll Rect 在小区域里展示大量内容 ...

  10. ubuntu出现有线已连接却无法上网

    或者直接追加到/etc/sysctl.conf 如果遇到“设备未托管”,一般是台式机默认移动ip后禁用网络. 那么修改/etc/NetworkManager/NetworkManager.conf,设 ...