求解高手,oracle存储过程执行查询的性能
请问存储过程中下面哪种方式查询性能效率高些:
一:
sqlstr := 'select id,name,sex,address,postcode,birthday from student
where id=:w_id';
open cur_rs for sqlstr using i_id;
二:
open cur_rs for select id,name,sex,address,postcode,birthday from
student where id=i_id;
注意是在存储过程中,cur_rs 是结果返回游标,i_id是入参