mysql update join,insert select 語法
#MySQL更新操作
update table_a m join table_b n
on m.gain_no = n.MOBILE_PHONE
set m.gain_no = n.AIP_NO,m.gain_type = '1'
where m.gain_type = '2' and m.gain_no in (
''
)
#MySQL批量新增
insert into table_a (clo1,clo2,clo3,clo4)
select a,b,c,d from table_b
轉載:http://blog.csdn.net/fansunion/article/details/52130365
相關文章
- SQLite語句(二):INSERT DELETE UPDATE SELECTSQLitedelete
- DBeaver如何生成select,update,delete,insert語句delete
- MySQL Join語法MySql
- Oracle中 Update和insert結合語法Oracle
- insert into select語句與select into from語句
- MySQL insert on duplicate key update 死鎖MySql
- mysql insert into ... select的鎖問題MySql
- 解析MySQL中INSERT INTO SELECT的使用MySql
- java-Mybatis XML 對映器(select,insert, update 和 delete)JavaMyBatisXMLdelete
- insert into select
- Laravel5.6 如何列印 SQL?insert/update/select 列印方法總結LaravelSQL
- select for update
- mysql 在delete、insert、update 時,page的變化MySqldelete
- MySQL 關於 INSERT INTO...ON DUPLICATE KEY UPDATE 的使用MySql
- KunlunDB功能之insert/update/delete...returning語句delete
- mysql實現merge功能之DUPLICATE key UPDATE語法MySql
- 【SQL】14 UNION 操作符、SELECT INTO 語句、INSERT INTO SELECT 語句、CREATE DATABASE 語句、CREATE TABLE 語句SQLDatabase
- 輕量ORM-SqlRepoEx (四)INSERT、UPDATE、DELETE 語句ORMSQLdelete
- MySQL中SELECT+UPDATE併發更新問題MySql
- [20180907]insert+with+select.txt
- 記一次 MySQL select for update 死鎖問題MySql
- 數倉工具—Hive語法之map join、reduce join、smb join(8)Hive
- select into from 和 insert into select 的用法和區別
- Apache Spark Dataframe Join語法教程ApacheSpark
- INSERT...SELECT語句對查詢的表加鎖嗎
- 比CRUD多一點兒(二):基礎INSERT、SELECT語句
- oracle update left join查詢Oracle
- MySQL -update語句流程總結MySql
- MySQL的update語句避坑MySql
- 深入理解SELECT ... LOCK IN SHARE MODE和SELECT ... FOR UPDATE
- 學習MySQL的select語句MySql
- sql查詢更新update selectSQL
- mybatis 批量新增insert、更新update詳解MyBatis
- mysql 高併發 select update 併發更新問題解決方案MySql
- MySQL LEFT JOIN/ INNER JOIN/RIGHT JOINMySql
- sql select語法執行順序SQL
- MySQL join語句怎麼最佳化?MySql
- MySQL系列6 - join語句的優化MySql優化