• 首页
    • 问答
      • c
      • c++
      • haskell
      • java
      • javascript
      • php
      • python
      • r
      • ruby
      • shell
      • .net
      • go
      • vb.net
      • erlang
    • 教程
    • 书籍
    • IT新闻

Sql Update Query

2018-06-05 07:12:43  

This question already has an answer here:

  • How do I UPDATE from a SELECT in SQL Server? 27 answers

  • 怎么样

    UPDATE T1
    SET Address = T2.New_Address
    FROM T2
    WHERE T1.id = T2.id
    

    UPDATE T1
    SET T1.Address = T2.New_Address
    FROM T1
    INNER JOIN T2 ON T2.ID = T1.ID
    

    UPDATE T1
    SET Address = (select New_Address from T2 where T1.ID=T2.ID );
    
    链接地址: http://www.djcxy.com/p/16856.html

    上一篇: 使用表连接查询更新整个单列

    下一篇: Sql更新查询

    • 相关推荐
    • is it possible to use variables in remote ssh command? 2018-07-04
    • 是否有可能在远程SSH命令中使用变量? 2018-07-04
    • Execute Bash script stored in a file over SSH 2018-07-04
    • 通过SSH执行存储在文件中的Bash脚本 2018-07-04
    • UNIX ssh script, running commands on remote server 2018-07-04
    • UNIX ssh脚本,在远程服务器上运行命令 2018-07-04
    • how to run a script file remotely using ssh 2018-07-04
    • 如何使用ssh远程运行脚本文件 2018-07-04
    • Run ssh and immediately execute command 2018-07-04
    • 运行ssh并立即执行命令 2018-07-04

    友情链接