0
所以我需要做此表的變化變化表結構和數據遷移MYSQL只查詢
從
assignments
- id
- organisation_id (fkey to organisations.id)
organisations
- id
contacts
- id
- assignment_id (fkey to assignment.id)
要
assignments // Not altered
- id
- organisation_id
organisations // Not altered
- id
contacts //Table altered (-assignment_id, +organisation_id)
- id
- organisation_id (fkey to organisations.id)
assignment_contact //New table with 2 foregin keys to existing tables
- contact_id (fkey to contact.id)
- assignment_id (fkey to assignment.id)
所以我想知道如果這種遷移可以用MySQL查詢完成,而不需要做任何手動後處理等等。
「障礙」
- 有〜在「聯繫人」 22K記錄表
- 它在生產中完成,因此可能沒有任何停機時間超過一兩分鐘
非常感謝您的任何建議或指導。
感謝
是,這種遷移可以做到用mysql查詢mysql的終端。 – Shadow