Skip to content

Instantly share code, notes, and snippets.

@altmind
Created March 30, 2012 18:31
Show Gist options
  • Select an option

  • Save altmind/2253789 to your computer and use it in GitHub Desktop.

Select an option

Save altmind/2253789 to your computer and use it in GitHub Desktop.
SELECT COUNT(*), INFO_PROCESSED FROM PROF WHERE PROCESSED=1 AND TIME>'2012-14-12 14:40:00' GROUP BY INFO_PROCESSED ORDER BY COUNT(*) DESC INTO OUTFILE '/tmp/prof2.csv' FIELDS TERMINATED BY '|';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment