db_execute_query的问题
set_window ("机构设置", 2);success =db_connect("query1","DSN=com;UID=wby;APP=WinRunner;WSID=WBY;Trusted_Connection=Yes",30);
rd=db_execute_query("sesion","select top 1 id from tbxorg order by id desc",record_number);
recode_number = db_get_field_value("sesion","#1","id");
ed=tbl_set_selected_cell("dw_1", "id="&id, "selectflag");
db_disconnect("sesion");
watch list :rd-10162(Syntax error in the SQL statemen)
这个是什么意思,搞不懂,帮帮我,数据库是连接成功的,返回是0、到了rd这不就不行了 rd=db_execute_query("sesion","select top 1 id from tbxorg order by id desc",record_number);
你把这句话中的"sesion"改为"query1"
哎
改了也一样的! "Syntax error in the SQLstatement"这表示sql语法错误
检查一下你的sql:“select top 1 id from tbxorg order by id desc”
看看能不能用数据库连接工具运行啊 数据库是连接成功的 ,语法在查询窗口运行也是有结果的 没人理我%%%%%
页:
[1]