表或视图不存在 drop table容错的方法是:
drop sequence容错的方法是:
- BEGIN
- DROP TABLE non_exists_table;
- EXCEPTION
- WHEN OTHERS THEN
- IF sqlcode != -0942 THEN RAISE; END IF;
- END;
- / 错误代码:-0942
drop sequence容错的方法是:
- BEGIN
- DROP SEQUENCE non_exists_sequence;
- EXCEPTION
- WHEN OTHERS THEN
- IF sqlcode != -2289 THEN RAISE; END IF;
- END;
- / 错误代码:-2289