用友修改UFSYSTEM最大单据号SQL语句_第1页
用友修改UFSYSTEM最大单据号SQL语句_第2页
用友修改UFSYSTEM最大单据号SQL语句_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、用友修改ufsystem最大单据号sql语句故障1:在保存任何单据时,出现用友单据保存提示违反了primary key约束*不能在对象*中插入重复键。新增单据保存失败的情况时,在sql查询器中,执行以下语句,就能解决。故障2:不能在具有唯一索引aardrecord_pk的对象rdrecord中插入重复键的行。 不能在具有唯一索引aardrecords_pk的对象rdrecords中插入重复键的行。故障3:发货单(销售发票)不能保存,提示操作过程中发生资源共享冲突,可能单据号重复update ua_identity set ifatherid=(select max(dlid)from ufda

2、ta_008_2013.dispatchlist),ichildid=(select max(idlsid)from ufdata_008_2013.dispatchlists) where cacc_id=008 and cvouchtype=dispatch update ufsystem.ua_identity set ifatherid=(select case when max(sbvid) is not null then max(sbvid) else 0 end as id from ufdata_008_2013.salebillvouch),ichildid=(select

3、 case when max(autoid) is not null then max(autoid) else 0 end as autoid from ufdata_008_2013.salebillvouchs)where cacc_id=008 and cvouchtype=billvouch goupdate ufsystem.ua_identity set ifatherid=(select case when max(poid) is not null then max(poid) else 0 end as id from ufdata_008_2013.po_pomain),

4、ichildid=(select max(id) as autoid from ufdata_008_2013.po_podetails)where cacc_id=008 and cvouchtype=pomain goupdate ufsystem.ua_identity set ifatherid=(select case when max(id) is not null then max(id) else 0 end as id from ufdata_008_2013.justinvouch),ichildid=(select case when max(autoid) is not

5、 null then max(autoid) else 0 end as autoid from ufdata_008_2013.justinvouchs)where cacc_id=008 and cvouchtype=jugoupdate ufsystem.ua_identity set ifatherid=(select case when max(id) is not null then max(id) else 0 end as id from ufdata_008_2013.pu_arrivalvouch),ichildid=(select case when max(autoid

6、) is not null then max(autoid) else 0 end as autoid from ufdata_008_2013.pu_arrivalvouchs)where cacc_id=008 and cvouchtype=puarrivalgoupdate ufsystem.ua_identity set ifatherid=(select case when max(id) is not null then max(id) else 0 end as id from ufdata_008_2013.pu_appvouch),ichildid=(select case

7、when max(autoid) is not null then max(autoid) else 0 end as autoid from ufdata_008_2013.pu_appvouchs)where cacc_id=008 and cvouchtype=puappgoupdate ufsystem.ua_identity set ifatherid=(select case when max(pbvid)is not null then max(pbvid) else 0 end as id from ufdata_008_2013.purbillvouch),ichildid=

8、(select case when max(id) is not null then max(id) else 0 end as autoid from ufdata_008_2013.purbillvouchs)where cacc_id=008 and cvouchtype=purbillgoupdate ufsystem.ua_identity set ifatherid=(select case when max(psvid)is not null then max(psvid) else 0 end as id from ufdata_008_2013.pursettlevouch)

9、,ichildid=(select case when max(id) is not null then max(id) else 0 end as autoid from ufdata_008_2013.pursettlevouchs)where cacc_id=008 and cvouchtype=purstidgoupdate ufsystem.ua_identity set ifatherid=(select case when max(id) is not null then max(id) else 0 end as id from ufdata_008_2013.sa_quoma

10、in),ichildid=(select case when max(autoid) is not null then max(autoid) else 0 end as autoid from ufdata_008_2013.sa_quodetails)where cacc_id=008 and cvouchtype=quomaingoupdate ufsystem.ua_identity set ifatherid=(select case when max(id)is not null then max(id) else 0 end as id from ufdata_008_2013.

11、so_somain),ichildid=(select case when max(isosid) is not null then max(isosid) else 0 end as isosid from ufdata_008_2013.so_sodetails)where cacc_id=008 and cvouchtype=somaingoupdate ufsystem.ua_identity set ifatherid=(select case when max(iid)is not null then max(iid) else 0 end as id from ufdata_00

12、8_2013.ap_closebill),ichildid=(select case when max(id)is not null then max(id) else 0 end as autoid from ufdata_008_2013.ap_closebills)where cacc_id=008 and cvouchtype=skgoupdate ufsystem.ua_identity set ifatherid=(select case when max(id)is not null then max(id) else 0 end as id from ufdata_008_20

13、13.transvouch),ichildid=(select case when max(autoid)is not null then max(autoid) else 0 end as autoid from ufdata_008_2013.transvouchs)where cacc_id=008 and cvouchtype=trgoupdate ufsystem.ua_identity set ifatherid=(select case when max(id)is not null then max(id) else 0 end as id from ufdata_008_2013.expensevouch),ichildid=(select case when max(autoid)is not null then max(autoid) else 0 end as autoid from ufdata_008_2013.expensevouchs)where cacc_id=008 and cvoucht

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论