conntest7.c

来自「b树实现源码,linux和unix下运行,速度快,极好用」· C语言 代码 · 共 22 行

C
22
字号
//  Pass correct user name and password ,it should pass.//  Author : Jitendra Lenkla#include<AbsSqlStatement.h>i#include<SqlFactory.h>int main(){   DbRetVal rv = OK;   AbsSqlConnection *con = SqlFactory::createConnection(CSqlAdapter);   rv = con->connect("root","manager");   if(rv!=OK)   {     printf("Test script failed with error%d\n",rv);     return 1;   }   printf("Connection opened with correct user name and password\n");   printf("Test script passed\n");   delete con;   return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?