자주쓰지 않아서 인지
매번 찾게 된다.. 찾을때 마다 시간낭비.. ㅜㅜ


SELECT DATE_FORMAT(regist_date, '%Y-%m-%d'),count(id_or_ip)
FROM foo_tbl
WHERE regist_date > '2008-10-31 23:59:59' AND is_stop = 'Y'
GROUP BY DATE_FORMAT(regist_date, '%Y-%m-%d')
INTO OUTFILE '/tmp/foo.unl'
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\n';


머리 나쁘면 개고생~~~
나이가 드니 기억력 불감증??

치매 예방을 위해 먼가 기억하는 연습을 하는게 좋다고는 하나 요즘 많은걸 집어넣어야 하는 머리이기에(용량의 한계도 느끼고) 자꾸 잃어 버리는 것들은 적어 놓자..

\0 An ASCII 0 (NUL) character.
\' A single quote (“'”) character.
\" A double quote (“"”) character.
\b A backspace character.
\n A newline (linefeed) character.
\r A carriage return character.
\t A tab character.
\Z ASCII 26 (Control-Z). See note following the table.
\\ A backslash (“\”) character.
\% A “%” character. See note following the table.
\_ A “_” character. See note following the table.

자세한 정보 : http://dev.mysql.com/doc/refman/5.0/en/string-syntax.html

업데이트 쿼리 사용시 잘못하면 'where' 절이 생략되는 사고가 발생할 수 있으니 꼬옥 조심해서 할것.. 

+ Recent posts