Hey, I'm wondering how I can get the output of this line to a file (any kind of file as long as it is not a mysql table):
SELECT * FROM `temp` AS t LEFT JOIN `kontor` AS r ON t.kontor_huvudRes_nummer = r. WHERE r.kontor_huvudRes_nummer IS NULL;
I'm comparing a table we have, and I need to have it in a file so I can print it out.
I generally would like to write a script that does that, so it can be used more than once.
SELECT * FROM `temp` AS t LEFT JOIN `kontor` AS r ON t.kontor_huvudRes_nummer = r. WHERE r.kontor_huvudRes_nummer IS NULL;
I'm comparing a table we have, and I need to have it in a file so I can print it out.
I generally would like to write a script that does that, so it can be used more than once.