General SQL Parser PHP Version

General SQL Parser PHP version only including one basic feature: syntax check. This PHP SQL Parser is built on General SQL Parser C version. You can extend this PHP SQL Parser to add all features you need. All necessary files are available here(About 9M).

 

How to setup this PHP SQL library

1. Put pgsp_parser.so under extension_dir, you can find extension_dir on your server via phpinfo.
2. Add a line including: extension = pgsp_parser.so in php.ini.
3. Copy test file: sql_parser.php to _SERVER["DOCUMENT_ROOT"] of your site.
4. Restart apache, apachectl restart
5. Open http://www.yoursite.com/sql_parser.php

Feel free to contact us if you have any questions while using this PHP SQL Parser.

Supported Database

 

Google BigQuery

 

Couchbase database

 

IBM DB2 database

 

EMC Greenplum

 

SAP Hana

 

hadoop hive

 

Impala

 

IBM Informix database

 

MySQL database

 

Netezza database

 

Openedge database

 

Oracle database

 

PostgreSQL database

 

Amazon redshift

 

Snowflake SQL

 

Spark SQL

 

Microsoft SQL Server database

 

Sybase database

 

Teradata database

 

Vertica database

 

Microsfot Office Access database

Questions?

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.