简体   繁体   English

MySQL C ++连接器setBigInt

[英]MySQL C++ connector setBigInt

So a PreparedStatement::setBigInt() takes a SQLString as the value parameter? 那么PreparedStatement :: setBigInt()将SQLString作为值参数? Is there no value large enough in C++ to hold what a BigInt can hold? 在C ++中没有足够大的值来保存BigInt可以容纳的东西吗? What if I'm using an unsigned long long in C++? 如果我在C ++中使用unsigned long long怎么办? What do I need to do to store this unsigned long long in a BigInt field? 在BigInt字段中存储这个unsigned long long需要做什么?

setUInt64与uint64_t一起使用:

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

A bigint is a 64-bit integer, so why can't use use an unsigned long long for an UNSIGNED BIGINT column? bigint是一个64位整数,那么为什么不能使用unsigned long long作为UNSIGNED BIGINT列呢?

It might depend on what adapter you're using. 它可能取决于您使用的适配器。 Do you have a link to the reference documentation? 你有参考文献的链接吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM