Skip to content

docs: LAST_QUERY_ID #1819

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

Merged
merged 2 commits into from
Apr 10, 2025
Merged

docs: LAST_QUERY_ID #1819

merged 2 commits into from
Apr 10, 2025

Conversation

soyeric128
Copy link
Collaborator

@soyeric128 soyeric128 commented Apr 9, 2025

This PR updated LAST_QUERY_ID with detailed explanations and examples.

Just refactored the document for LAST_QUERY_ID based on my own test results. Key updates includes that the functions accepts both positives & negatives, and how the queries in a session are indexed in either way:

Positive Negative
SELECT 1 1 -4
SELECT 2 2 -3
SELECT 3 3 -2
SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(3) 4 -1

Copy link

vercel bot commented Apr 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2025 11:07pm

@soyeric128 soyeric128 linked an issue Apr 9, 2025 that may be closed by this pull request
@soyeric128 soyeric128 requested review from BohuTANG and sundy-li April 9, 2025 23:09
@soyeric128 soyeric128 added the databend monthly This PR goes to Databend Monthly label Apr 9, 2025
@soyeric128 soyeric128 merged commit ea6a470 into main Apr 10, 2025
4 checks passed
@soyeric128 soyeric128 deleted the LAST_QUERY_ID branch April 10, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
databend monthly This PR goes to Databend Monthly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doc: query result cache
2 participants