GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE] MySQL ALTER Table Syntax List: UNSPECIFIC Operations · Issue #2118 · JSQLParser/JSqlParser

[FEATURE] MySQL ALTER Table Syntax List: UNSPECIFIC Operations #2118

New issue
Copy link
New issue
Copy link
Closed
Closed
[FEATURE] MySQL ALTER Table Syntax List: UNSPECIFIC Operations#2118
Copy link

Description

@minleejae
minleejae
opened on Nov 26, 2024
Issue body actions

Grammar or Syntax Description

Description

Certain MySQL-specific ALTER TABLE clauses are not explicitly recognized by JSqlParser. These are categorized as Operation is UNSPECIFIC, which can limit parsing capabilities and programmatic handling of such statements.

EBNF Context

Below is a list of MySQL ALTER TABLE clauses that fall under the UNSPECIFIC category:

  • ENABLE KEYS
  • DISABLE KEYS
  • ALTER TABLE ... FORCE
  • ALTER TALBE ... COLLATE

SQL Examples

Example Queries

-- 1. ENABLE KEYS
ALTER TABLE `jin_innodb` ENABLE KEYS;

-- 2. DISABLE KEYS
ALTER TABLE `jin_innodb` DISABLE KEYS;

-- 3. FORCE
ALTER TABLE `my_table` FORCE;

-- 4. COLLATE
alter table cavedb.stat_app_api COLLATE=utf8mb4_general_ci;

-- 5. import / discard tablespace
ALTER TABLE t4 DISCARD TABLESPACE;
ALTER TABLE partitioned_table IMPORT tablespace;

More examples will be added to expand the coverage of MySQL-specific clauses.

Additional Context
JSqlParser Version : 5.0

Applicable RDBMS : MySQL 8.0

Documentation References
MySQL ALTER TABLE Documentation

Activity

  1. manticore-projects commented on Dec 9, 2024

    @manticore-projects
    manticore-projects
    on Dec 9, 2024
    Contributor
    More actions

    Closed via #2121

  2. manticore-projects
    closed this as completedon Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.