How to update primary key

前端 未结 6 1859
萌比男神i
萌比男神i 2020-11-29 07:03

Here is my problem - I have 2 tables:

  1. WORKER, with columns |ID|OTHER_STAF| , where ID is primary key
  2. FIRM, with columns |FPK|ID|SOME
6条回答
  •  难免孤独
    2020-11-29 07:48

    Don't update the primary key. It could cause a lot of problems for you keeping your data intact, if you have any other tables referencing it.

    Ideally, if you want a unique field that is updateable, create a new field.

提交回复
热议问题