#2
mywisdom882016-08-25 11:55
|
/* 连接数据库 */
45 EXEC SQL CONNECT "sa" IDENTIFIED BY "123456";
46 if(SQLCODE)
47 {
48 printf("连接数据库出错:SQL[%d]-[%s]!\n", SQLCODE,SQLMSG);
49 exit(0);
50 }
51 EXEC SQL set chained off;
52 EXEC SQL use REALLINKDB;
53
54 if(SQLCODE)
55 {
56 printf("应用数据库出错:SQL[%d]-[%s]!\n", SQLCODE,SQLMSG);
57 exit(0);
58 }
数据库连接好了 接下去怎么搞 求高手指点并给出相应代码,3Q