procedure queryLackLonOrLatTdCell(i_region_name varchar2, i_state varchar2) is begin select region_name, state from gc3_td_site_history where 1 = 1 and region_name = decode(i_region_name, null, region_name, i_region_name) and instr(decode(i_state, nu…
在工作中,有时,我们会用到oracle分页查询.这时,就需要先了解oracle的rownum.rowmun是oracle的伪列,只能用符号(<.<=.!=),而不能用这些符号(>,>=,=,between...and)比如我们要查询prpdriskconfig表,这条sql:select * from prpdriskconfig where configcode='UndwrtCollectFlow'总共有58条数据,我们现在只想要前50条数据,这是就需要用到rownum了. )…