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