原因找出來了,是因為主表有些記錄沒有相對應的明細表記錄,出錯提示:“This constraint cannot be enabled as not all values have corresponding parent values”,請問如何解決這個問題?主表記錄一定要有相對應的明細表記錄嗎?