Timestamp列的MySQL分区
我有 timestamp 列(毫秒)的分区表。从理论上讲,这不太可能重合,但可以使2个插入物尝试使用相同的时间戳制成。显然,将重复主键重复。
在这种情况下,可以有什么可能的解决方案?
I have table with partitions by timestamp column (milliseconds). Theoretically it is unlikely to coincide, but can make the case that 2 inserts try to made with the same timestamp. Obviously it would throw an error for being duplicated the primary key.
What possible solution can there be in this case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论