I have a mySQL table which contains html code and some other information.
One example like this:
SELECT id, lang, html
FROM mytable t
WHERE type = 10
give the result:
id lang html
-------------------------------------------------------
20 fr '<html> ... html code here </html>'
21 de '<html> ... html code here </html>'
22 it '<html> ... html code here </html>'
23 en '<html> ... html code here </html>'
and my idea is to export the html code into one file per lines like
20_fr.html
will contains the html columns for id 2021_de.html
will contains the html columns for id 21- etc...
Is it possible to do so in SQL language only like this example for exporting all rows into one file.
I know I can do it with Java or any other language but I am interested only by a SQL (a stored procedure could be ok).