insert into student(id,name,sex)
select '111','张三','女' from dual
where not exists (select 1 from student where id= '111')
insert
when (not exists (select 1 from student where id= '111'))
then into student(id,name,sex) values ('111','张三','女')
select 1 from dual;
begin
update student set name = '张三' where id= '111'
if sql%notfound then
insert into student(id,name,sex) values('111','张三','女')
end if;
end;