[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4356":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":43,"discoverSource":44},4356,"JSqlParser","JSQLParser\u002FJSqlParser","JSQLParser","JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern","https:\u002F\u002Fgithub.com\u002FJSQLParser\u002FJSqlParser\u002Fwiki",null,"Java",5946,1416,211,82,0,2,3,8,7,71.75,"Apache License 2.0",false,"master",true,[27,28,29,30,31,32,33,34,35,36,37,38,39],"ast","hierarchy","java","jsqlparser","mysql","oracle","parser","paypal","postgresql","sql","sql-statement","sqlserver","statement","2026-06-12 04:00:22","# [JSqlParser 5.3 Website](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser) \u003Cimg src=\"src\u002Fsite\u002Fsphinx\u002F_images\u002Flogo-no-background.svg\" alt=\"drawing\" width=\"200\" align=\"right\"\u002F>\n\n[![CI](https:\u002F\u002Fgithub.com\u002FJSQLParser\u002FJSqlParser\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FJSQLParser\u002FJSqlParser\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Coverage Status](https:\u002F\u002Fcoveralls.io\u002Frepos\u002FJSQLParser\u002FJSqlParser\u002Fbadge.svg?branch=master)](https:\u002F\u002Fcoveralls.io\u002Fr\u002FJSQLParser\u002FJSqlParser?branch=master)\n[![Codacy Badge](https:\u002F\u002Fapp.codacy.com\u002Fproject\u002Fbadge\u002FGrade\u002F6f9a2d7eb98f45969749e101322634a1)](https:\u002F\u002Fwww.codacy.com\u002Fgh\u002FJSQLParser\u002FJSqlParser\u002Fdashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=JSQLParser\u002FJSqlParser&amp;utm_campaign=Badge_Grade)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Fcom.github.jsqlparser\u002Fjsqlparser.svg?label=maven-central)](https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Fcom.github.jsqlparser\u002Fjsqlparser) [![Javadocs](https:\u002F\u002Fwww.javadoc.io\u002Fbadge\u002Fcom.github.jsqlparser\u002Fjsqlparser.svg)](https:\u002F\u002Fwww.javadoc.io\u002Fdoc\u002Fcom.github.jsqlparser\u002Fjsqlparser)\n[![Gitter](https:\u002F\u002Fbadges.gitter.im\u002FJSQLParser\u002FJSqlParser.svg)](https:\u002F\u002Fgitter.im\u002FJSQLParser\u002FJSqlParser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n\nA huge thank you to our sponsor, [Starlake.ai](https:\u002F\u002Fstarlake.ai\u002F) who simplifies data ingestion, transformation, and orchestration, enabling faster delivery of high-quality data. Starlake has been instrumental in providing Piped SQL and numerous test cases for BigQuery, Redshift, DataBricks, and DuckDB. Show your support for ongoing development by visiting Starlake.ai and giving us a star!\n\n## Summary\n\nPlease visit our [WebSite](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser) for detailed information. **JSqlParser** is a RDBMS agnostic SQL statement parser. It translates SQL statements into a traversable hierarchy of Java classes (see [Samples](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fusage.html#parse-a-sql-statements)):\n\n```sql\nSELECT 1 FROM dual WHERE a = b\n\n\u002F* produces the following AST\n\nSQL Text\n └─Statements: statement.select.PlainSelect\n    ├─selectItems: statement.select.SelectItem\n    │  └─LongValue: 1\n    ├─Table: dual\n    └─where: expression.operators.relational.EqualsTo\n       ├─Column: a\n       └─Column: b\n*\u002F\n```\n\n```java\nString sqlStr = \"select 1 from dual where a=b\";\n\nPlainSelect select = (PlainSelect) CCJSqlParserUtil.parse(sqlStr);\n\nSelectItem selectItem =\n        select.getSelectItems().get(0);\nAssertions.assertEquals(\n        new LongValue(1)\n        , selectItem.getExpression());\n\nTable table = (Table) select.getFromItem();\nAssertions.assertEquals(\"dual\", table.getName());\n\nEqualsTo equalsTo = (EqualsTo) select.getWhere();\nColumn a = (Column) equalsTo.getLeftExpression();\nColumn b = (Column) equalsTo.getRightExpression();\nAssertions.assertEquals(\"a\", a.getColumnName());\nAssertions.assertEquals(\"b\", b.getColumnName());\n```\n## Support for `Piped SQL`\n\nWork is progressing for parsing `Piped SQL`, a much saner and more logical way to write queries in its semantic order.\n```sql\nFROM Produce\n|> WHERE\n    item != 'bananas'\n    AND category IN ('fruit', 'nut')\n|> AGGREGATE COUNT(*) AS num_items, SUM(sales) AS total_sales\n   GROUP BY item\n|> ORDER BY item DESC;\n```\n\nFor details, please see https:\u002F\u002Fstorage.googleapis.com\u002Fgweb-research2023-media\u002Fpubtools\u002F1004848.pdf,  https:\u002F\u002Fcloud.google.com\u002Fbigquery\u002Fdocs\u002Freference\u002Fstandard-sql\u002Fpipe-syntax and https:\u002F\u002Fduckdb.org\u002Fdocs\u002Fsql\u002Fquery_syntax\u002Ffrom.html#from-first-syntax\n\n## Java Version\n\nJSQLParser-4.9 was the last JDK8 compatible version. JSQLParser-5.0 and later depend on JDK11 and introduce API breaking changes to the AST Visitors. Please see the Migration Guide for the details.\n\nBuilding JSQLParser-5.1 and newer with Gradle will depend on a JDK17 toolchain due to the used plugins.\n\nJSQLParser-5.4 Snapshot and later use JavaCC-8 Snapshots for generating the parser.\n\n## Performance\n\nUnfortunately the released JSQLParser-5.2 shows a performance deterioration caused by commit [30cf5d7](https:\u002F\u002Fgithub.com\u002FJSQLParser\u002FJSqlParser\u002Fcommit\u002F30cf5d7b930ae0a076f49deb5cc841d39e62b3dc) related to `FunctionAllColumns()`.\nThis has been resolved in JSQLParser 5.3-SNAPSHOT and JMH benchmarks have been added to avoid such regressions in the future. Further all `LOOKAHEAD` have been revised one by one, and we have gained back a very good performance of the Parser.\n\nAs per March-2026, the productions `Condition()`, `RegularCondition()` and `AndExpression()` have been refactored successfully. Furthermore, we have overhauled Token definition and handling of Reserved Keywords.  This resulted in a massive performance boost and seem to have solved most of the performance issues.\n\n```text\nBenchmark                               (version)  Mode  Cnt   Score   Error  Units\nJSQLParserBenchmark.parseSQLStatements     latest  avgt   15   7.602 ± 0.135  ms\u002Fop \u003C-- March\u002F26\nJSQLParserBenchmark.parseSQLStatements        5.3  avgt   15  84.687 ± 3.321  ms\u002Fop\nJSQLParserBenchmark.parseSQLStatements        5.1  avgt   15  86.592 ± 5.781  ms\u002Fop\n```\n\n## [Supported Grammar and Syntax](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fsyntax.html)\n\n**JSqlParser** aims to support the SQL standard as well as all major RDBMS. Any missing syntax or features can be added on demand.\n\n| RDBMS                                                                                                           | Statements                                                                                                                              |\n|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| BigQuery\u003Cbr>Snowflake\u003Cbr>DuckDB\u003Cbr>Redshift\u003Cbr>Oracle\u003Cbr>MS SQL Server and Sybase\u003Cbr>Postgres\u003Cbr>MySQL and MariaDB\u003Cbr>DB2\u003Cbr>H2 and HSQLDB and Derby\u003Cbr>SQLite | `SELECT`\u003Cbr>`INSERT`, `UPDATE`, `UPSERT`, `MERGE`\u003Cbr>`DELETE`, `TRUNCATE TABLE`\u003Cbr>`CREATE ...`, `ALTER ....`, `DROP ...`\u003Cbr>`WITH ...` |\n| PostgreSQL Row Level Security                                                                                   | `CREATE POLICY`\u003Cbr>`ALTER TABLE ... ENABLE\u002FDISABLE\u002FFORCE\u002FNO FORCE ROW LEVEL SECURITY`                                                  |\n| Salesforce SOQL                                                                                                 | `INCLUDES`, `EXCLUDES`                                                                                                                  |\n| Piped SQL (also known as FROM SQL)                                                                              |                                                                                                                                         |\n\n**JSqlParser** can also be used to create SQL Statements from Java Code with a fluent API (see [Samples](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fusage.html#build-a-sql-statements)).\n\n## Sister Projects\n\nIf you like JSqlParser then please check out its related projects:\n\n* [JSQLFormatter](https:\u002F\u002Fmanticore-projects.com\u002FJSQLFormatter\u002Findex.html) for pretty printing and formatting SQL Text\n\n* [JSQLTranspiler](https:\u002F\u002Fmanticore-projects.com\u002FJSQLTranspiler\u002Findex.html) for dialect specific rewriting, SQL Column resolution and Lineage, provided by [Starlake.ai](https:\u002F\u002Fstarlake.ai\u002F)\n\n## Alternatives to JSqlParser?\n\nAlternatively the dual-licensed [JOOQ](https:\u002F\u002Fwww.jooq.org\u002Fdoc\u002Flatest\u002Fmanual\u002Fsql-building\u002Fsql-parser\u002F) provides a handwritten Parser supporting a lot of RDBMS, translation between dialects, SQL transformation, can be used as a JDBC proxy for translation and transformation purposes.\n\n## [Documentation](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser)\n  1. [Samples](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fusage.html#parse-a-sql-statements)\n  2. [Build Instructions](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fusage.html) and [Maven Artifact](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fusage.html#build-dependencies)\n  3. [Contribution](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fcontribution.html)\n  4. [Change Log](https:\u002F\u002Fjsqlparser.github.io\u002FJSqlParser\u002Fchangelog.html#latest-changes-since-jsqlparser-version)\n  5. [Issues](https:\u002F\u002Fgithub.com\u002FJSQLParser\u002FJSqlParser\u002Fissues)\n\n## License\n\n**JSqlParser** is dual licensed under **LGPL V2.1** or **Apache Software License, Version 2.0**.\n","JSqlParser 是一个与具体关系数据库无关的 SQL 语句解析器，能够将 SQL 语句转换为可遍历的 Java 类层次结构。该项目支持多种数据库方言（如 MySQL、Oracle、PostgreSQL 等），并采用访问者模式来导航生成的抽象语法树（AST）。其核心功能包括高度可扩展的解析逻辑和易于操作的 API 设计，使得开发者可以方便地对 SQL 语句进行分析或修改。JSqlParser 非常适合需要在应用程序中动态处理 SQL 语句的场景，例如构建数据库迁移工具、SQL 查询优化器或是执行基于规则的数据治理任务。","2026-06-11 02:59:49","top_language"]