Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for REVERSE in Oracle PL/SQL #192

Closed
wants to merge 2 commits into from

Conversation

TsinghuaLucky912
Copy link
Contributor

REVERSE in Oracle PL/SQL:

image


REVERSE in PL/pgSQL:

ivorysql=# do $$
ivorysql$# BEGIN
ivorysql$#    FOR i IN REVERSE 3..1 LOOP
ivorysql$#       raise info '%',i;
ivorysql$#    END LOOP;
ivorysql$#    
ivorysql$#    FOR i IN 1..3 LOOP
ivorysql$#       raise info '%',i;
ivorysql$#    END LOOP;
ivorysql$# END;
ivorysql$# $$ language plpgsql;
INFO:  3
INFO:  2
INFO:  1
INFO:  1
INFO:  2
INFO:  3
DO
ivorysql=#

@tanyang-star
Copy link
Collaborator

This branch has conflicts that must be resolved

@TsinghuaLucky912
Copy link
Contributor Author

This branch has conflicts that must be resolved

Thanks for the heads-up. I think it was my last entry that caused the conflict

…alues are decremented from the upper bound to lower bound by step.

rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants