Select all from table Oracle

只愿长相守 提交于 2020-01-14 03:12:13

问题


I wrote a stored procedure to select all records from a table. Since I'm new to Oracle I have few questions.

  1. Is this Correct?
  2. Is this the best way to select all records from a table?
  3. How can I view result in SP in DB level?
alter PROCEDURE employee_getall
(

 cv_results in out sys_refcursor
)
IS
BEGIN
open cv_results for
   select *
    from employee_master
EXCEPTION
WHEN OTHERS THEN
    NULL ;
END; 

来源:https://stackoverflow.com/questions/30442927/select-all-from-table-oracle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!