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

Extend ALTER SEQUENCE syntax with SELECT [CORE5621] #5887

Open
firebird-automations opened this issue Sep 22, 2017 · 1 comment
Open

Extend ALTER SEQUENCE syntax with SELECT [CORE5621] #5887

firebird-automations opened this issue Sep 22, 2017 · 1 comment

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Tommi Prami (mwaltari)

ALTER SEQUENCE <name> RESTART WITH (SELECT MAX(ID) FROM CUSTOMER);

Sometimes the select is not that start forward, but anyways would do good to be able to fetch new value with select,

Would make easier to reset the Sequences in some scenarios like when you have to enter data to db by hand etc (Like in development phase) or when there is an bug in software.

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

An EXECUTE BLOCK with EXECUTE STATEMENT could be used to accomplish the same thing, so the need for this change is nominal.

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

No branches or pull requests

1 participant