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这不就不行了