M
miniminimini
Unregistered / Unconfirmed
GUEST, unregistred user!
下列語名運行出錯。
ADOquery1.SQL.Clear;
sqlstr:='update hr000 set hr002 ='+''''+edit1.text+''''+' where hr001 ='+''''+edit2.text+'''';
adoquery1.SQL.Add(pchar(sqlstr));
adoquery1.Active:=true;
adoquery1.ExecSQL;
錯誤信息為: ADOQuery1: command text does not return a result set
但是數據還是被更新了。對了,服務器端是SQL 7
ADOquery1.SQL.Clear;
sqlstr:='update hr000 set hr002 ='+''''+edit1.text+''''+' where hr001 ='+''''+edit2.text+'''';
adoquery1.SQL.Add(pchar(sqlstr));
adoquery1.Active:=true;
adoquery1.ExecSQL;
錯誤信息為: ADOQuery1: command text does not return a result set
但是數據還是被更新了。對了,服務器端是SQL 7