编写存储过程,输入库名、对象名,输出该对象的对象类型,如是视图,则输出“这是视图”,是表,输出“这是表”,是存储过程,输出“这是存储过程”等。
------解决方案--------------------
貌似不需要存储过程
- SQL code
select object_type from dba_objects where owner='TONY' and object_name='EMP';
select object_type from dba_objects where owner='TONY' and object_name='EMP';