E
E_SHARK
Unregistered / Unconfirmed
GUEST, unregistred user!
我使用D6/ACCESS2000
qry.Connection.BeginTrans;
try
sqlstr:='insert into cabinet_now (cabinet_id,login_time,user_id,edit_state) values'+
' ('+''''+edit1.Text+''''+',now(),'+''''+sysinfo.PID +''''+
' ,false)';
qry.SQL.Clear;
qry.SQL.Add(sqlstr);
qry.ExecSQL;
qry.Connection.CommitTrans;
except
qry.Connection.RollbackTrans;
end;
总是告诉我‘操作必须使用一个可更新的查询’,哪位大侠能够指点一二?
qry.Connection.BeginTrans;
try
sqlstr:='insert into cabinet_now (cabinet_id,login_time,user_id,edit_state) values'+
' ('+''''+edit1.Text+''''+',now(),'+''''+sysinfo.PID +''''+
' ,false)';
qry.SQL.Clear;
qry.SQL.Add(sqlstr);
qry.ExecSQL;
qry.Connection.CommitTrans;
except
qry.Connection.RollbackTrans;
end;
总是告诉我‘操作必须使用一个可更新的查询’,哪位大侠能够指点一二?