Validate SQL queries.
Softwium's SQL validator is a browser-based tool for checking MySQL syntax in SQL queries. It scans SELECT, INSERT, UPDATE, and DELETE statements for syntax errors such as unclosed parentheses, mistyped keywords, or missing terms, and highlights the specific line where an error occurs. It is built on the SQL parser library used by phpMyAdmin since version 4.5.
The tool is aimed at database administrators, developers, and analysts who work with structured datasets and want to catch syntax errors before executing a query, particularly for large or complex SQL statements where manual review is time-consuming. It focuses on MySQL syntax specifically, noting that syntax can vary in other database systems such as PostgreSQL or DB2.
A POST API endpoint (/sql-syntax-tester) is also available, accepting a SQL query as payload and returning a list of syntax errors with message, token, line, and column information, or an empty response if no errors are found. The page notes the API should be used sparingly.
It focuses on verifying MySQL syntax, though MySQL syntax largely aligns with other databases with some variations.
It uses the SQL parser library, which has been part of phpMyAdmin since version 4.5.
Yes, there is a POST /sql-syntax-tester API endpoint that returns a list of syntax errors, and it should be used sparingly.
Each error includes the error message, the token in error, the line number, and the column number.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
For compiling and running code in several languages.
Run JMESPath queries on JSON data for filtering, transforming, and extracting results.
Online code execution system.
Create, retrieve, update, increment, and decrement counters identified by namespace and key.
PHP syntax checker.
Validate Python code syntax.