delphi ,修改oracle数据库数据
withqry1dobeginClose;SQL.Clear;SQL.Add('updatespirit_patientsetNAME:=pa,NAME_PHONETIC...
with qry1 do
begin
Close;
SQL.Clear;
SQL.Add('update spirit_patient set NAME:=pa,NAME_PHONETIC:=pb where patient_id:='''+edt1.Text+''' ');
Parameters.ParamByName('xpid').value := Trim(edt1.Text);
Parameters.ParamByName('pa').Value:=trim(edtName.Text);
Parameters.ParamByName('pb').value := Trim(edtNamePhonetic.Text);
........
ExecSQL;
end;
逐行检查也没发现错误啊,怎么回事啊 展开
begin
Close;
SQL.Clear;
SQL.Add('update spirit_patient set NAME:=pa,NAME_PHONETIC:=pb where patient_id:='''+edt1.Text+''' ');
Parameters.ParamByName('xpid').value := Trim(edt1.Text);
Parameters.ParamByName('pa').Value:=trim(edtName.Text);
Parameters.ParamByName('pb').value := Trim(edtNamePhonetic.Text);
........
ExecSQL;
end;
逐行检查也没发现错误啊,怎么回事啊 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询