The built-in DB2 SQL engine in General SQL Parser provides in-depth analysis of an organization's DB2 SQL script(including function/procedure of course) at a detailed level that would not be possible without a complete, 100% compatible query parser.
Parsing SQL is a notoriously difficult task because the syntax of DB2 SQL is very ambiguous in a lot of places. Many people have attempted to write a full SQL grammar with parser generate tool and failed.
Now you can fully incorporated this DB2 SQL parser into your products, instantly adding a powerful SQL processing capability to your program. With the right library, you can get your job done quickly by saving hundred of hours, if not more, on developing time.
Easily integrate SQL formatter into your application for a color coded layout that is easy to navigate, giving your product a professional feeling.
Your application will be able to validate SQL syntax before a database executes the query. This is very useful especially if your SQL was dynamically built based on user input.
Avoid being vulnerable to SQL injection in your ASP.NET or Java application, by automatically detecting malicious SQL segment with our ready-to-use library.
Precisely determining and renaming every table and column in stored SQL statements is very complex with a lot of nesting and sub-queries. With us, however, that tedious procedure can become hassle-free one for you.
Parse out the affect SQL objects in a SQL file that can have many different types of SQL (select, insert, create, drop, etc), and helping to determine what is being affected, including but not limited to schema, table, column.
Quickly locate the primary key and/or foreign key in DDL scripts to figure out the complex relationship among the various tables. Extracted table, attribute names, data types can be used to generate the CRUD-Statements.
Parsing SQL is a notoriously difficult task, but we are here to help. You will be provided with a SQL query parse tree in XML output that will allow you to further process SQL scripts.
Modify SQL expression/condition in where clause to reconstruct a new filter. Rewrite Oracle proprietary joins to ANSI SQL compliant joins. Translate SQL between different databases.
Read complex and large SQL scripts to find out tables have Create, Read, Update, Delete and Insert operations against them immediately, it's almost impossible to do that without help with a tool.
We are dedicated to constantly improving our product so it will be easier to use with more flexibility, making it a valuable asset to your software product. Here, we have provided you with additional demos that may be helpful to you.
Level 1: SQL parser recognizes that this is a valid SQL statement, but can't validate the syntax of this specific SQL statement. This demo shows how General SQL Parser can handle this kind of SQL statements.
Level 2: SQL Parser fully parses this kind of SQL statements with detailed query parse tree node elements and provides everything you need to analyze and manipulate this kind of SQL statements.
Level 1 statements: 115, Level 2 statements: 21, generated by General SQL Parser Java Version 1.8.8.5
SQL statements | Level 1 | Level 2 |
allocate cursor | Y | |
alter bufferpool | Y | |
alter database partition group | Y | |
alter function | Y | |
alter method | Y | |
alter nickname | Y | |
alter procedure | Y | |
alter sequence | Y | |
alter server | Y | |
alter table | Y | Y |
alter tablespace | Y | |
alter type | Y | |
alter user mapping | Y | |
alter view | Y | |
alter wrapper | Y | |
associate locators | Y | |
begin declare section | Y | |
call | Y | Y |
case | Y | |
close | Y | |
comment | Y | |
commit | Y | |
connect | Y | Y |
create alias | Y | |
create bufferpool | Y | |
create database | Y | Y |
create database partition group | Y | |
create distinct type | Y | |
create eventmonitor | Y | |
create function | Y | Y |
create function mapping | Y | |
create global temporary table | Y | Y |
create index | Y | Y |
create index extension | Y | |
create method | Y | |
create nickname | Y | |
create or replace procedure | Y | Y |
create or replace trigger | Y | Y |
create or replace view | Y | Y |
create schema | Y | |
create sequence | Y | |
create server | Y | |
create stogroup | Y | |
create tablespace | Y | |
create transform | Y | |
create type | Y | |
create type mapping | Y | |
create user mapping | Y | |
create wrapper | Y | |
declare global temporary table | Y | |
declare cursor | Y | |
delete | Y | Y |
describe | Y | |
disconnect | Y | |
drop | Y | |
end declare section | Y | |
execute | Y | Y |
execute immediate | Y | |
explain | Y | |
fetch | Y | |
flush event monitor | Y | |
flush package cache | Y | |
for | Y | |
free locator | Y | |
get diagnostics | Y | |
goto | Y | |
grant | Y | |
if | Y | |
include | Y | |
insert | Y | Y |
iterate | Y | |
leave | Y | |
lock table | Y | |
loop | Y | |
merge | Y | Y |
open | Y | |
prepare | Y | |
refresh table | Y | Y |
release | Y | |
release savepoint | Y | |
rename | Y | |
rename tablespace | Y | |
repeat | Y | |
resignal | Y | |
return | Y | Y |
revoke | Y | |
rollback | Y | |
savepoint | Y | |
select | Y | Y |
set connection | Y | |
set | Y | |
set current default transform group | Y | Y |
set current degree | Y | |
set current explain mode | Y | |
set current explain snapshot | Y | |
set current isolation | Y | |
set current lock timeout | Y | |
set current maintained table types | Y | |
set current package path | Y | |
set current packageset | Y | |
set current query optimization | Y | |
set current refresh age | Y | |
set encryption password | Y | |
set event monitor state | Y | |
set integrity | Y | |
set passthru | Y | |
set path | Y | |
set schema | Y | |
set server option | Y | |
set session authorization | Y | |
signal | Y | |
terminate | Y | Y |
update | Y | Y |
update command | Y | |
while | Y |
If you have any questions about General SQL Parser, You can always send us an email and we'll get back to you within 24 hours.
Yes, of course. We collect all kinds of examples in this page to illustrate how and why you want to use general sql parser, hope it can help you to make better use of this library.