Linux下OTL 使用long long类型支持数据库的BIGINT

代码如下:


#define OTL_BIGINT  long long
#define OTL_STR_TO_BIGINT(str,n) { 	n=atoll(str); }

#define OTL_BIGINT_TO_STR(n,str) { 	sprintf(str,"%lld", n); }
#include "otlv4.h"// include the OTL 4.0 header file

从上面可以看出,OTL并没有实际做什么工作,它只是用宏的方式预留了接口,具体的你自己根据操作系统对应的函数实现。上面是Linux里面的实现,Windows下面的是另外的函数,具体自己去查。

Linux下OTL 使用long long类型支持数据库的BIGINT,布布扣,bubuko.com

Linux下OTL 使用long long类型支持数据库的BIGINT

上一篇:为代码减负之<二>存储过程(SQL)


下一篇:html Table实现表头固定