Is it ok to use character values for primary keys?

前端 未结 7 1145
悲&欢浪女
悲&欢浪女 2021-01-19 10:54

Is there a performance gain or best practice when it comes to using unique, numeric ID fields in a database table compared to using character-based ones?

For instanc

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-19 11:10

    I find primary keys that are meaningless numbers cause less headaches in the long run.

提交回复
热议问题