sql.Add('update tljt.dbo.f_pzdjdan set xs=xs+xs*'+strtofloat(edit1.Text) where bmmc='''+trim(combobox1.Text)+'''  and gz='''+trim(combobox3.Text)+'''');

解决方案 »

  1.   

    sql.Add('update tljt.dbo.f_pzdjdan set xs=xs+xs*'+strtofloat(edit1.Text) +' where bmmc='''+trim(combobox1.Text)+'''  and gz='''+trim(combobox3.Text)+'''');
      

  2.   

    trysql.Add("update tljt.dbo.f_pzdjdan set xs=xs+xs*" + strtofloat(edit1.text) + " where bmmc='"+trim(combobox1.Text)+"'  and gz="'+trim(combobox3.Text)+"'");
      

  3.   

    sql.Add('update tljt.dbo.f_pzdjdan set xs=xs+xs*'+strtofloat(edit1.Text) + ' where bmmc = '''+ trim(combobox1.Text)+ ''' and gz= ''' + trim(combobox3.Text) + '''');