Convert

Example

To use the Java SQL stripper, just paste in your Java formatted SQL string into the textbox on the left, then click convert. The example given converts the following String into a formal SQL query.

Java

	"SELECT * " +
	"   FROM USERS u" +

	"INNER JOIN CODE cd ON cd.userid = u.id " +
	"WHERE u.id in ('1','2') ";

SQL

	SELECT *
	FROM USERS u
	INNER JOIN CODE cd ON cd.userid = u.id
	WHERE u.id in ('1','2')

Alternatively, you can just paste in SQL into the left textbox, select the SQL to Java radio button, it will convert the raw SQL into a Java string so you can just paste it into your code.

Java SQL Stripper - By @_davidgray