Skip to content

Support VALUES and TABLE statements syntax #19934

@tangenta

Description

@tangenta

Description

Related parser issue: pingcap/parser#869

Example

The TABLE and VALUES statements are two query specification statements introduced in MySQL 8.0.19.

TABLE tbl_name [ORDER BY col_name] [LIMIT limit [OFFSET offset]];

VALUES ROW(val1, val2, …), … [ORDER BY column_N [LIMIT limit [OFFSET offset]]];

Explaination

These can be used in place everywhere a SELECT statement was expected, including:

  • UNION
  • JOIN
  • subqueries
  • SELECT INTO OUTFILE
  • INSERT INTO SELECT
  • CREATE TABLE SELECT

Solution

For a reference, please see pingcap/parser#680 and learn how to support a new syntax in the parser.

Score

  • 300

SIG Slack Channel

You can join #sig-ddl on slack in your spare time to discuss and get help with mentors or others.

Mentor(s)

Contact the mentors: #tidb-challenge-program channel in TiDB Community Slack Workspace

Recommended Skills

  • Parser
  • Golang

Learning Materials

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions