LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 929|回复: 3

C操作postgreSql的问题

[复制链接]
发表于 2003-10-6 14:18:00 | 显示全部楼层 |阅读模式
前几天看到网上的C操作postgreSql的程序 但是有点我不懂就是有关#include
1.C操作postgreSql
/*头文件*/
#include <stdio.h>
#include
main() {
   char *pghost,
     *pgport,
      *pgoptions,
      *pgtty;
   char *dbName;
   int nFields;
   int i, j;
   PGconn *conn;
   PGresult *res;
第二个#include是什么意思呀怎么文件名都没有呀
发表于 2003-10-8 11:05:01 | 显示全部楼层
应该是写错了才对的。
 楼主| 发表于 2003-10-12 14:07:53 | 显示全部楼层

postgresql

那那是不是#include <postgresql.h>
发表于 2003-10-13 14:39:39 | 显示全部楼层
不是的。你看一下文档,好像是pgsql.h吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表