-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sql: fix sequence doc #2380
sql: fix sequence doc #2380
Conversation
需要的,谢谢哈 |
LGTM |
``` | ||
1, 3, 5, ... // 序列遵循起始为 1、步长为 2 的等差关系。 | ||
select setval(seq, 6) // 设置 SEQUENCE 的当前值为 6。 | ||
7, 9, 11, ... // 后续产生值仍会遵循这个等差关系。 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use some SQLs to indicate this.
e.g. select nextval...(show output) ; select setval ....; select nextval ...(show output).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is ok, this wants to explain the logic of the numbers, using the SQL show here will be a huge page.
Thank you so much @TomShawn for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
What is changed, added or deleted? (Required)
Add a description of how does TiDB setval differ from Maraidb.
Which TiDB version(s) do your changes apply to? (Required)
If you select two or more versions from above, to trigger the bot to cherry-pick this PR to your desired release version branch(es), you must add corresponding labels such as needs-cherry-pick-3.1, needs-cherry-pick-3.0, and needs-cherry-pick-2.1.
What is the related PR or file link(s)?