I am trying to export a data from a table, Here's an example tables,
# table
role_permission:
role_permissionID roleID
1 100
2 101
3 100
# table
role:
roleID organizationID
100 3121
200 1212
Here, role permission table is linked with role table by roleID column.
I want to take a dump of role_permission table using mysqldump
but only for organizationID=3121?
I know how to take dump of role table but not role permission table.
mysqldump --compact --no-create-info -u root -p RF role --where="organizationID=100" > role.mysql
Please do help?