본문 바로가기
MySql

MySQL --where 절이있는 mysqldump가 작동하지 않습니다.

by 베이스 공부 2020. 11. 30.
반응형
 mysqldump -t -u root -p  mytestdb mytable --where=datetime LIKE '2014-09%'

이것이 내가하는 일이며 다음을 반환합니다.

mysqldump: Couldn't find table: "LIKE"

datetime 열이 2014-09와 같이 "모든 9 월 행"을 의미하는 모든 행을 반환하려고합니다.

 

해결 방법

 

따옴표를 사용해야 할 수도 있습니다.

mysqldump -t -u root -p  mytestdb mytable --where="datetime LIKE '2014-09%'"

 

참조 페이지 https://stackoverflow.com/questions/26261670

 

 

반응형

댓글