-- 语法:update table_1 t1,table_2 t2 set t1.column = t2.column where t1.id = t2.pid;

UPDATE house_test.shareInfo AS t1,
(
SELECT
u.*,
g.city_code
FROM
`api`.`user` AS u
LEFT JOIN `api`.`group` AS g ON g.group_id = u.group_id
) AS t2
SET t1.cityCode = t2.city_code
WHERE
t1.userId = t2.user_id
AND (
t1.cityCode IS NULL
OR t1.cityCode = '')

最新文章

  1. python学习笔记之装饰器、递归、算法(第四天)
  2. 查询oracle数据库中的所有表空间信息
  3. 在linux下python爬虫进程发生异常时自动重启直至正常结束的方法
  4. POJ - 1159 Palindrome(dp-回文变形)
  5. map使用.xml
  6. Python编程中的反模式
  7. C#几个经常犯错误汇总
  8. 嘟!数字三角形 W WW WWW集合!
  9. 配置keil MDK和keil C51共存
  10. 齐博软件(地方门户系统) 文件加密破解工具
  11. C# using
  12. data.table包简介
  13. MySql开启慢查询日志并使用pt-query-digest 分析
  14. 解决Requests中文乱码【有用】,读取htm文件 读取txt文件报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0
  15. 理解Hash
  16. 【php】---mysql语法增、删、改、查---【巷子】
  17. Apache commons StringUtils 在运行时出现NoClassDefError错误的解决方法
  18. poj 3133 Manhattan Wiring
  19. Springboot 拦截器(HandlerInterceptorAdapter)中注入无效
  20. Java学习之SpringBoot整合SSM Demo

热门文章

  1. 你对USB了解吗?--USB 协议分析之 HID 设备
  2. nginx调试和location用法,匹配url
  3. php严格模式的使用
  4. C# winfrom 添加Log4Net日志库
  5. Vue.Draggable使用总结
  6. Mysql存储的设备推送数据如何利用GroupBy筛选所有设备的最新数据
  7. 进程间通信-信号-pipe-fifo
  8. js 深拷贝 和 浅拷贝
  9. csss线条中间粗两边细
  10. ansible-file