test.cxx
来自「oracle oci 轻量级封装库,很方便和实用!适合于简单的数据库操作.绝对精」· CXX 代码 · 共 32 行
CXX
32 行
// test.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include "dbclient.h"
int main(int argc, char* argv[])
{
Connect();
printf("Connect OK.\n");
RecordSet set;
set.Open("select * from 计量点参数表");
for(int k=0;k<set.GetRecordsCount();k++)
{
Record *pRec=set.GetRecord(k);
for(int l=0;l<pRec->GetFieldsCount();l++)
{
printf("%s",pRec->GetFieldValue(l));
if(l==(pRec->GetFieldsCount()-1))
printf("\n");
else
printf("\t");
}
}
//ExecCommand("select empno,ename,job,mgr,to_char(hiredate,'yyyy/mm/dd') hiredate,sal,comm,deptno from EMP");
DisConnect();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?