📄 test.cxx
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -