摘要:
declare cnt number; begin ---查询要创建的表是否存在 SELECT COUNT(*) into cnt FROM cols WHERE table_name=UPPER('entry_workflow_user') AND column_name=UPPER('proc_sjdate'); ---如果存在则删除该表 if cnt>0 then dbms_outp... 阅读全文
摘要:
declare cnt number;begin ---查询要创建的表是否存在 select count(*)into cnt from user_tables where table_name='ENTRY_MODIFYSTATUS'; ---如果存在则删除该表 if cnt>0 then dbms_output.put_line('表存在不创建'); else dbms_output... 阅读全文