假设我在wei中有余额1000000000000000000000。如何在mysql中存储此int?
对于此类数字,Bigint类型较小。
最佳答案
您可以使用DECIMAL或NUMERIC
https://dev.mysql.com/doc/refman/8.0/en/fixed-point-types.html
或者只是将wei转换为Eth并存储FLOAT:
https://dev.mysql.com/doc/refman/8.0/en/floating-point-types.html
关于mysql - 以太坊余额的MySQL表类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54735796/