Created
March 8, 2012 09:40
-
-
Save snickerjp/1999976 to your computer and use it in GitHub Desktop.
CSV出力とIF関数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
IF(FLAG=1,'OK','NG') | |
from | |
DATA | |
where | |
ID = 001 | |
INTO OUTFILE "/tmp/test.csv" FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment