|
非常急急急急!!!!请斑主帮帮忙
rc=db_connect("szgas","DSN=wr_test1",30);
if (rc== E_OK )
pause("connect succes");
else
pause("connect fail");
db_execute_query("szgas","select * from organ where organno='130'and sign='1000000000000000'",record_num);
val=db_get_field_value("szgas","#1","name");
db_disconnect("szgas");
pause(val);
可是在链接数据源的地方就出错了,显示"connect fail",但建立odbc时提示成功.不知问题出在哪?建用户DSN,系统DSN,文件DSN有什么区别吗?都试过,还是链接失败.
--------------------------------------------------------------------------------------------------------------------------
虽然结果显示连接成功,但是我怎样看到通过SQL语句查询出来的数据啊, 请高手指点?? |
|