mysqldump DB_NAME TABLE_NAME --where 'CONDITION' > outfile.sql