Public APIs
Softwium favicon

Softwium

Programming

Validate SQL queries.

Softwium's website screenshot

About Softwium

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.

Key features

  • Validates SQL syntax and highlights the specific line with the error
  • Checks SELECT, INSERT, UPDATE, and DELETE statements for syntax violations
  • Detects common mistakes like unclosed parentheses, mistyped keywords, or omitted terms
  • Focuses on MySQL syntax validation
  • Built on the SQL parser library used in phpMyAdmin since version 4.5
  • Offers an API endpoint (POST /sql-syntax-tester) that returns a list of syntax errors

Frequently asked questions

What database syntax does this validator check?

It focuses on verifying MySQL syntax, though MySQL syntax largely aligns with other databases with some variations.

What library powers the SQL validator?

It uses the SQL parser library, which has been part of phpMyAdmin since version 4.5.

Is there an API available?

Yes, there is a POST /sql-syntax-tester API endpoint that returns a list of syntax errors, and it should be used sparingly.

What does the error output from the API contain?

Each error includes the error message, the token in error, the line number, and the column number.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product