- 浏览: 2173 次
-
最新评论
文章列表
业务需求:需要在插入数据库之前判断该数据是否已经存在数据库中,如果存在则进行update操作,如果不存在则进行insert操作
使用语句:merge into ser_layout_ccic_person a
using (select '证件号' certificate_code,
'身份类型' certificate_type,
'test' name
from dual) b
on (a.certificate_code = b.certificate_code and a.certificate_type=b.ce ...