我在桌子上有一个双列主键.我试图改变它以ignore_dup_key使用此命令将其设置为on:
ALTER INDEX PK_mypk on MyTable
SET (IGNORE_DUP_KEY = ON);
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
Cannot use index option ignore_dup_key to alter index 'PK_mypk' as it enforces a primary or unique constraint.
我该怎么IGNORE_DUP_KEY办?