Revisando el manual de MySQL he encontrado esto:
Cita:
¿Cómo debería construir la instrucción?shell> mysqldump [OPTIONS] database [tables]
[...]
-w, --where='where-condition'
Dump only selected records. Note that quotes are mandatory:
"--where=user='jimf'" "-wuserid>1" "-wuserid<1"
[...]
-w, --where='where-condition'
Dump only selected records. Note that quotes are mandatory:
"--where=user='jimf'" "-wuserid>1" "-wuserid<1"
mysqldump --add-drop-table --where=id_fitxa in ($llista) database|mysql -hhost -uuser -ppassword database
mysqldump --add-drop-table --where="id_fitxa in ($llista)" database|mysql -hhost -uuser -ppassword database
mysqldump --add-drop-table database|mysql -hhost -uuser -ppassword database "--where=id_fitxa in ($llista)"
¿ ?