insert into tablename(属性1,属性2) select '值1','值2' from dual where exists (select 1 from tablename where 子句);