How should ip2long converted IP's be stored in MySQL?

前端 未结 2 1304
一个人的身影
一个人的身影 2020-12-11 19:32

I don\'t know enough about the function, or ip\'s, to determine how my column structure should be for storing this. Any suggestions?

2条回答
  •  无人及你
    2020-12-11 20:16

    Simply use an unsigned INT field for it.

    Also see http://lists.mysql.com/cluster/2781 for a discussion about it.

提交回复
热议问题