私はテーブルを持っています
documents
(
year int not null,
number int not null,
document_types_id int not null,
...
)
主キーは year + number + document_types_id です。
より良い主キーは year + document_types_id + number だと思います。この PK は他の多くのテーブルで FK として使用されているため、PK を削除および再作成せずに、この構成 (テーブル、PK および FK の組み合わせの列ではなく) を並べ替える方法はありますか。
ありがとう。