Recipe 4.11. Merging Records
1 merge into emp_commission ec 2 using (select * from emp) emp 3 on (ec.empno=emp.empno) 4 when matched then 5 update set ec.comm = 1000 6 delete where (sal < 2000) 7 when not matched then 8 insert (ec.empno,ec.ename,ec.deptno,ec.comm) 9 values (emp.empno,emp.ename,emp.deptno,emp.comm)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23895263/viewspace-681081/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Recipe 1.10. Returning n Random Recordsrandom
- C#9.0:RecordsC#
- Debug-Records
- 5.編寫recipe
- 精讀《Records & Tuples for React》React
- Deployer recipe中Laravel配置檔案Laravel
- 檢視合併(View Merging)View
- Prevents Merging An Inline ViewinlineView
- Recipe 5.2. Listing a Table's Columns
- Recipe 5.6. Using SQL to Generate SQLSQL
- Recipe 6.7. Extracting Initials from a Name
- Retrieving the First N Records from a SQL QuerySQL
- 使用 Recipe 安裝 SAP Commerce CloudCloud
- Recipe 3.1. Stacking One Rowset atop Another
- Recipe 4.7. Blocking Inserts to Certain ColumnsBloCAI
- Oracle 查詢轉換-02 View MergingOracleView
- Git Merging vs. Rebasing(譯文)Git
- [Laravel] - | Learning records | ORM 模型關聯 with () 用法LaravelORM模型
- 【Java】Java新特性--Records記錄型別Java型別
- Recipe 4.10. Updating with Values from Another Table
- ORA-28056 Writing audit records to Windows Event Log failedWindowsAI
- Error: The action can not be performed because the selected records are not eligibleErrorORM
- Oracle10g New Feature -- 2.Flashback RecordsOracle
- ORA-28056: Writing audit records to Windows Event Log failedWindowsAI
- Recipe 6.10. Creating a Delimited List from Table RowsMIT
- Oracle11g維護分割槽(五)——Merging PartitionsOracle
- No suitable application records were found. Verify your bundle ideUIAPPIDE
- iOS上傳App Store報錯:no suitable application records were foundiOSAPPUI
- _complex_view_merging對執行計劃的影響View
- SAP PP使用ECR去修改Recipe主資料,報錯:Generation not supported
- SAP PP C201使用ECR建立Recipe主資料
- 使用 C# 9 的records作為強型別ID - 初次使用C#型別
- ORACLE 使用records_per_block降低表資料塊熱塊機率OracleBloC
- Paging Records Using SQL Server 2005 Database - ROW_NUMBER FunctionSQLServerDatabaseFunction
- 【SQL優化器查詢變換器】檢視合併(View Merging)SQL優化View
- CF1998E2 Eliminating Balls With Merging (Hard Version)
- SAP Hybris使用recipe進行安裝時,是如何執行ant命令的?
- 合併與拆分資料模型(MSDM:Merging & Spliting Data Modeling)模型