存入和读取比较方便,记录一下直接修改图片:
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('update TPTab set MC=:MC,LX=:LX,TP=:TP where MC='''+mc_str+''' and LX='''+lx_str+'''');
ADOQuery1.Parameters.ParamByName('MC').Value:=mc_com.Text;
ADOQuery1.Parameters.ParamByName('LX').Value:=lx_com.Text;
ADOQuery1.Parameters.ParamByName('TP').Assign(tp_img.Picture);
ADOQuery1.ExecSQL;