I have a MySQL query (about 20 lines long). I want to know if there is an online something or other that can make it into a string for my code. For example...
SELECT
`tblapplied`.*
, `tbljobs`.*
, CONCAT(salutation," ",firstname," ",lastname)
, `tblusers`.`id`
, `tblcountry`.`countryname`
, `tblquestions`.`question`
, `tblquestions_1`.`question`
Becomes
MySql = "SELECT"
MySql += "`tblapplied`.*"
MySql += ", `tbljobs`.*"
MySql += ", CONCAT(salutation," ",firstname," ",lastname)"
and so on, you get the picture.. I ask because I keep on having to embed SQL into code and would like to be able to quick convert it to a string$
Many Thanks