Is it good idea to use uint instead of int as the primary key in data model class?

前端 未结 4 1331
臣服心动
臣服心动 2020-12-18 18:45

We know that the primary keys are usually positive integers.

Is it good idea to use uint instead of int as the primary key in data model cl

4条回答
  •  情深已故
    2020-12-18 19:22

    The corresponding SQL data type is a signed number, so I'd stick with the int to avoid any surprises.

提交回复
热议问题