type gcursor is rel of cursor;
procedure aa()
as
str varchar2(2000);
begin
  if country<>"" and name<>"" and sex<>"" then
str='select * from table where country='''||country||''' and name='''||name||'''
             and sex='''||sex||''''
  end if;
......判断open rs for str;
end aa;