二。用来Update的Sql中的Where 子句不能保证数据的唯一性!

解决方案 »

  1.   

    peihexian(只有初中学历)
    >>二。用来Update的Sql中的Where 子句不能保证数据的唯一性! 
    是不是指Query不能保证数据的唯一性
      

  2.   

    to whitehare(小白免):你有没有使用UpdateSql组件,如果有,把你的UpdateSql中的SQL贴出来!
      

  3.   

    update hc_item_detail
    set
      regi_money = :regi_money,
      zfbl = :zfbl,
      gbh = :gbh,
      ckdj = :ckdj,
      care_flag =:care_flag,
      care_code = :care_code,
      care_tran = :care_tran
    where
      row_id = :OLD_row_id and
      bill_date = :OLD_bill_date and
      pati_id = :OLD_pati_id and
      item_code = :OLD_item_code and 
      ym = :OLD_ym
      

  4.   

    to whitehare(小白免):
    其实不用这么多的where ,只要有一个字段能保证记录唯一就可以了!你用这么多反而不是好事! 
      

  5.   

    update hc_item_detail
    set
      regi_money = :regi_money,
      zfbl = :zfbl,
      gbh = :gbh,
      ckdj = :ckdj,
      care_flag =:care_flag,
      care_code = :care_code,
      care_tran = :care_tran
    where
      row_id = :OLD_row_id 
    试试!
     
      

  6.   

    yeah !行了,
    为何?有的时候多加并不会错。
      

  7.   

    yeah !行了,
    为何?有的时候多加并不会错。
      

  8.   

    当我编辑[OPITION]中的Updates Fields 时会出现'update SQL statements not generated ,exit anyway?'的信息,而我直接填入SQL却不会错
      

  9.   

    没有改呀?那些是原来就填好的,不会变的,我改了zfbl,regi_money.从bof to eof  用循环只有三条纪录