Is it possible to add primary keys to a table one-time and there are
already
multiple primary key defined?
I have to change sp_id, so_id as primary keys to the existing primary
keys
dn_slot_id and dn_mm_id.
I tried several times but all failed:
1. alter table debit_slot_deta il add primary key (sp_id, so_id);
2. alter table debit_slot_deta il add primary key (dn_slot_id, dn_mm_id,
sp_id, so_id);
thanks in advance for any help
already
multiple primary key defined?
I have to change sp_id, so_id as primary keys to the existing primary
keys
dn_slot_id and dn_mm_id.
I tried several times but all failed:
1. alter table debit_slot_deta il add primary key (sp_id, so_id);
2. alter table debit_slot_deta il add primary key (dn_slot_id, dn_mm_id,
sp_id, so_id);
thanks in advance for any help
Comment