日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Oracle多條件查詢的分頁存儲(chǔ)如何操作?

以下的文章主要介紹的是Oracle多條件查詢的分頁存儲(chǔ)實(shí)際操作過程,以下的文章主要是介紹一種更為快捷的方法來實(shí)現(xiàn)其實(shí)際操作過程,以下就是具體方案的描述,希望在你今后的學(xué)習(xí)中會(huì)有所幫助。

網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、成都微信小程序、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了大興免費(fèi)建站歡迎大家使用!

項(xiàng)目接近尾聲了,感覺將業(yè)務(wù)邏輯放到Oracle中使得后臺(tái)代碼很精簡,Oracle很有搞頭!

PL\SQL:

create or replace procedure proc_client_List --客戶Oracle多條件查詢

(

pro_cursor out pkg_order.p_cursor, --查詢結(jié)果集

characters_ in varchar2,--客戶性質(zhì)

states_ in varchar2,--客戶狀態(tài)

type_ in varchar2,--客戶類型

calling_ in varchar2,--客戶行業(yè)

name_ in varchar2,--客戶名稱

beginTime_ in date,--創(chuàng)建日期上限

endTime_ in date,--創(chuàng)建日期上限

area_ in number,--客戶地區(qū)

clientsource_ in varchar2,--客戶來源

importent_ in varchar2,--重要程度

start_row in number,--結(jié)果集起始行

end_row in number--結(jié)果集結(jié)束行

 
 
 
  1. ) is  
  2. sql_str varchar2(1000):=  
  3. 'select * from  
  4. ( select row_.*, rownum rownum_ from  
  5. (  
  6. select * from clientinfo c  
  7. where(:characters_ is null or c.characters like :characters_)  
  8. and (:states_ is null or c.states like :states_)  
  9. and (:type_ is null or c.type like :type_)  
  10. and (:calling_ is null or c.calling like :calling_)  
  11. and (:name_ is null or c.name like :name_)  
  12. and (:beginTime_ is null or c.createtime > :beginTime_)  
  13. and (:endTime_ is null or c.createtime < :endTime_)  
  14. and (:area_ is null or c.area=:area_)  
  15. and (:clientsource_ is null or c.clientsource like :clientsource_)  
  16. and (:importent_ is null or c.importent like :importent_)  
  17. ) row_ where rownum <= :end_row  
  18. )  
  19. where rownum_ > :start_row';  
  20. begin  
  21. open pro_cursor for sql_str using  
  22. characters_,'%'||characters_||'%',  
  23. states_,'%'||states_||'%',  
  24. type_,'%'||type_||'%',  
  25. calling_,'%'||calling_||'%',  
  26. name_,'%'||name_||'%',  
  27. beginTime_,beginTime_,  
  28. endTime_,endTime_,  
  29. area_,area_,  
  30. clientsource_,'%'||clientsource_||'%',  
  31. importent_,'%'||importent_||'%',  
  32. end_row,start_row;  
  33. end proc_client_List;   

 

上述的相關(guān)內(nèi)容就是對Oracle多條件查詢的分頁存儲(chǔ)過程的描述,希望會(huì)給你帶來一些幫助在此方面。


網(wǎng)頁題目:Oracle多條件查詢的分頁存儲(chǔ)如何操作?
文章源于:http://m.5511xx.com/article/dheccch.html