当前位置:Gxlcms > 数据库问题 > oracle中的merege语句使用

oracle中的merege语句使用

时间:2021-07-01 10:21:17 帮助过:4人阅读

                   on (T1.字段名 = T2.字段名)                                       --关联的条件

       when matched then                                                            --符合关联条件的时候,进行更新

                    update set T1.指定字段名 = T2.指定字段名                  --更新表数据

       when not matched then                                                       --不符合关联条件的时候,进行插入

                    insert (T1.指定字段名)                                              --可以是多个,以逗号分隔

                    values(T2.指定字段名)                                              --可以是多个,以逗号分隔,必须和T1的字段一一对应

 

 

  

oracle中的merege语句使用

标签:

人气教程排行