How do I store a BIGINT in MySQL using PDO?

后端 未结 1 498
余生分开走
余生分开走 2021-01-05 17:43

I know this question has been asked more than once here, but I couldn\'t find a solution.

We are using a database where we are storing the facebook id as a BIGINT(2

相关标签:
1条回答
  • 2021-01-05 17:49

    We are using a database where we are storing the facebook id as a BIGINT(20).

    Why oh why are you doing that?

    I think general consensus is that Facebook ids should not be saved as numeric types, but as strings instead. Saving them as something numeric does not yield any advantages whatsoever – but several disadvantages.

    0 讨论(0)
提交回复
热议问题