I have an application that defines some sql code:
mySql = "SELECT sq.question, qs.title, sq.id as question_id, sq.type, qs.id as option_id, sri.title as rankTitle, sri.id as rankId, sfi.title as formTitle, sfi.id as formId, sq.sub_type, sq.sort_order FROM survey_questions as sq LEFT JOIN question_suboptions as qs ON sq.id = qs.question_id LEFT JOIN survey_rankingitems as sri ON sq.id = sri.question_id LEFT JOIN survey_formitems as sfi ON sq.id = sfi.question_id WHERE sq.survey_id =
I would like to insert this code (everything between double quotes) in the mySql command line, change one parameter and execute it, but I ran into a problem when for each line above mySql would display:
Show all 1450 features? (y or n)
And then 1450 different teams available. If I delete all the lines and tabs, I can insert them, but it takes a lot of time and pain. Is there a way that I can simply paste the above code, edit it and execute it as a unit?
source share