0
I have a SELECT that needs to turn into a PROC with paging to be consumed by an ASP (classic) page. Could you help me?
Below is the SELECT:
SELECT
A.NOMUSU,
A.NOMMAE,
C.ATIVID,
B.DSCEND,
B.NUMEND,
B.DSCBAI,
B.DSCCID,
B.CODUFE,
B.CODCEP,
D.NUMDDD,
D.NUMTEL
FROM TBCADUSU A
INNER JOIN TBCADEND B ON (A.CODUSU = B.CODUSU)
INNER JOIN TBCADCRE C ON (A.CODUSU = C.CODUSU)
INNER JOIN TBCADCTO D ON (A.CODUSU = D.CODUSU)
WHERE B.TIPEND = 2
I don’t know which bank you’re using, but check out the link @Barbetta passed, if it is
mysql
can uselimit
, see this question: mysql paging– Ricardo Pontual
Pefeito! Helped me so much. I’m using SQL even.. Thanks
– Daniel Afonso