項目接近尾聲了
PL\SQL:
create or replace procedure proc_client_List
(
pro_cursor out pkg_order
characters_ in varchar
states_ in varchar
type_ in varchar
calling_ in varchar
name_ in varchar
beginTime_ in date
endTime_ in date
area_ in number
clientsource_ in varchar
importent_ in varchar
start_row in number
end_row in number
) is
sql_str varchar
( select row_
(
select * from clientinfo c
where(:characters_ is null or c
and (:states_ is null or c
and (:type_ is null or c
and (:calling_ is null or c
and (:name_ is null or c
and (:beginTime_ is null or c
and (:endTime_ is null or c
and (:area_ is null or c
and (:clientsource_ is null or c
and (:importent_ is null or c
) row_ where rownum <= :end_row
)
where rownum_ > :start_row
begin
open pro_cursor for sql_str using
characters_
states_
type_
calling_
name_
beginTime_
endTime_
area_
clientsource_
importent_
end_row
end proc_client_List;
/
From:http://tw.wingwit.com/Article/program/Oracle/201311/16924.html