Oracle?????????洢????
???????????? ???????[ 2014/3/24 9:13:27 ] ????????Oracle ?????
??????????oracle?????????oracle???????????????????????????????????????????oracle????????洢??????ó??????ο???°ɡ?
??????????????漰????????α?exception???е???????????????????ο?????????鼮?ú???????~~
//oracle????洢????
create or replace proceduce fenye(tableName in varchar2??pageSize in number??pageNow in number??myRowCount out number??myPageCount out number??
p_cursor out t1.t---???????????α?
)
is
--???巋??
v_sql varchar2(500);
v_begin number:=(pageNow-1)*pageSize+1;
v_end number:=pageNow*pageSize;
begin
--?????в???
v_sql:='select * from ??select t1.*??rownum rn from(select * from '||tableName||') t1 where rownum<='||v_end||')where rn>='||v_begin||'':??????????????????????????
--???α??sql??????
open p_cursor for v_sql;
--????myRowCount??myPageCount
v_sql:='select count(*)from '||tableName||'';
execute immediate v_sql into myRowCount--???sql??????????????myRowCount
--????myPageCount
if mod(myRowCount??pageSize)=0 then
myPageCount:=myRowCount/pageSize;
else
myPageCount:=myRowCount/pageSize+1;
end if??
--????α?
close p_cursor;
end;
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11