急求C语言<sqlca.h>头文件源代码!!~~

本人想在C中潜入SQL可是缺少<sqlca.h>头文件还求好心人发个源代码如果能提供点例子更好,我是在VC环境下!麻烦了~... 本人想在C中潜入SQL 可是缺少<sqlca.h>头文件

还求好心人发个源代码
如果能提供点例子更好,我是在VC环境下!麻烦了~
展开
 我来答
WXD110114dccd8
2007-09-28 · TA获得超过2.9万个赞
知道大有可为答主
回答量:1.6万
采纳率:43%
帮助的人:8198万
展开全部
#ifndef POSTGRES_SQLCA_H
#define POSTGRES_SQLCA_H

#ifndef DLLIMPORT
#ifdef __CYGWIN__
#define DLLIMPORT __declspec (dllimport)
#else
#define DLLIMPORT
#endif /* __CYGWIN__ */
#endif /* DLLIMPORT */

#define SQLERRMC_LEN 70

#ifdef __cplusplus
extern "C"
{
#endif

struct sqlca
{
char sqlcaid[8];
long sqlabc;
long sqlcode;
struct
{
int sqlerrml;
char sqlerrmc[SQLERRMC_LEN];
} sqlerrm;
char sqlerrp[8];
long sqlerrd[6];
/* Element 0: empty */
/* 1: OID of processed tuple if applicable */
/* 2: number of rows processed */
/* after an INSERT, UPDATE or */
/* DELETE statement */
/* 3: empty */
/* 4: empty */
/* 5: empty */
char sqlwarn[8];
/* Element 0: set to 'W' if at least one other is 'W' */
/* 1: if 'W' at least one character string */
/* value was truncated when it was */
/* stored into a host variable. */

/*
* 2: if 'W' a (hopefully) non-fatal notice occured
*/ /* 3: empty */
/* 4: empty */
/* 5: empty */
/* 6: empty */
/* 7: empty */

char sqlext[8];
};

extern DLLIMPORT struct sqlca sqlca;

#ifdef __cplusplus
}
#endif

#endif

参考资料: http://cluster.earlham.edu/detail/usr-local/pgsql/include/sqlca.h

本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式