Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone. I have to translate a stored procedure from sql to postgresql. I used an online convertor. But I don't know how to translate that snippet: (sql SP)

DECLARE curs CURSOR FAST_FORWARD FOR


The convertor translated it like this:

DECLARE curs CURSOR FAST_FORWARD FOR


But when I tried to create the function in postgresql it gives me "ERROR: syntax error at or near "FAST_FORWARD"". So my question is: Is there postgresql equivalent for the sql "FAST_FORWARD" keyword?

What I have tried:

I tried to research the issue in google and stackoverflow but I did not find the answer.
Posted
Updated 24-Jul-19 21:24pm

1 solution

Did you try the Postgresql documentation: PostgreSQL: Documentation: 8.4: Cursors[^] ?
 
Share this answer
 
Comments
Member 13992723 25-Jul-19 3:53am    
I read it but did not find any solution there.
Richard MacCutchan 25-Jul-19 4:04am    
My reading of that (and the error message you see) suggests fairly clearly that postgresql does not have a FAST_FORWARD option.
Member 13992723 25-Jul-19 4:15am    
Ok thank you
Richard MacCutchan 25-Jul-19 4:20am    
You could try using NO_SCROLL which prevents backward fetches, and probably does much the same thing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900