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

Postgres support (queries) #44

Closed
54 tasks done
Tracked by #40
nene opened this issue Nov 9, 2023 · 0 comments
Closed
54 tasks done
Tracked by #40

Postgres support (queries) #44

nene opened this issue Nov 9, 2023 · 0 comments

Comments

@nene
Copy link
Owner

nene commented Nov 9, 2023

SELECT syntax

  • WITH clause
    • [NOT] MATERIALIZED
    • ( select | values | insert | update | delete ) in addition to just select
    • SEARCH {BREADTH | DEPTH} FIRST BY column_name [, ...] SET search_seq_col_name
    • CYCLE col [, ...] SET cycle_mark_col [TO cycle_mark_value DEFAULT cycle_mark_default] USING cycle_path_col
  • SELECT clause
    • DISTINCT ON (...)
    • empty select (no columns)
  • INTO clause
    • [TEMPORARY | TEMP | UNLOGGED] [TABLE] tablename
  • FROM clause
    • ONLY tablename
    • tablename *
    • AS alias (col1_alias, col2_alias, ...)
    • TABLESAMPLE sampling_method (...) [ REPEATABLE (seed) ]
    • LATERAL (select)
    • LATERAL table_func(..)
    • LATERAL ROWS FROM(..)
    • table function call
    • func(...) WITH ORDINALITY
    • func(...) AS (column_definition, ...)
    • basic ROWS FROM ( func(), ... )
    • ROWS FROM ( func() AS (column_definition, ... ), ... )
    • ROWS FROM ( ... ) [WITH ORDINALITY]
  • GROUP BY clause
    • ALL | DISTINCT
    • ( )
    • (expr1, expr2, ...)
    • ROLLUP (...)
    • CUBE (...)
    • GROUPING SETS (...)
  • WINDOW clause
  • ORDER BY
    • USING operator
    • NULLS {FIRST | LAST}
  • limiting
    • LIMIT count
    • LIMIT ALL
    • OFFSET start [ ROW | ROWS ]
    • FETCH { FIRST | NEXT } [ count ] { ROW | ROWS } { ONLY | WITH TIES }
  • FOR clause
    • FOR { UPDATE | NO KEY UPDATE | SHARE | KEY SHARE }
    • OF table_name [, ...]
    • NOWAIT | SKIP LOCKED
  • TABLE clause
    • TABLE ONLY
    • table_name *
    • preceded by WITH
    • in UNION / INTERSECT / EXCEPT
    • followed by ORDER BY, LIMIT, OFFSET, FETCH
    • followed by FOR
  • VALUES clause
    • separate VALUES statement
    • Followed by ORDER BY, LIMIT, OFFSET, FETCH
@nene nene mentioned this issue Dec 28, 2023
17 tasks
@nene nene closed this as completed Jan 6, 2024
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

No branches or pull requests

1 participant