MySQL C++ connector setBigInt

MySQL C++ connector setBigInt

本文关键字:setBigInt connector C++ MySQL      更新时间:2023-10-16

所以PreparedStatement::setBigInt()以SQLString作为值参数?c++中是否没有足够大的值来容纳BigInt类型所能容纳的?如果我在c++中使用unsigned long,会怎样?我需要做些什么来将这个unsigned long存储在BigInt字段中?

使用setUInt64与uint64_t:

void sql::PreparedStatement::setUInt64(unsigned int parameterIndex, uint64_t value);

bigint是64位整数,所以为什么不能使用unsigned long longUNSIGNED BIGINT列?

这可能取决于您使用的适配器。你有参考文档的链接吗?