


下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024德阳城市轨道交通职业学院辅导员招聘笔试真题
- 法律文书校对员考试试卷及答案
- 法律风险评估员考试试卷及答案
- 食品感官分析师笔试试题及答案
- 2025年精密陶瓷劈刀项目建议书
- 2025年教师编制考试教育学基础知识必会题库完整版【答案】
- 2025年厦门市湖里生态环境局辅助岗位人员招聘考试笔试试题【答案】
- 2025年电子计步器实验分析仪器项目发展计划
- 湘艺版二年级下册教案第四课 箫
- 2025年上半年公司网管述职报告范文
- 【中班幼儿分享行为现状及其培养策略研究(数据图表论文)5000字】
- 速冻隧道安全操作规程
- (骨科)维生素D水平评估在骨科的应用及研究新进展课件
- 烟草证迁移申请书范本
- 狮子王-中英文-剧本台词(全)
- 13G322-1~4《钢筋混凝土过梁(2013年合订本)》
- 商铺租赁合同(有利于承租方)
- C语言开发基础教程(Dev-C++)(第2版)PPT完整全套教学课件
- 宁波大学岗位设置管理实施办法汇编-征求意见稿
- 外研版(2019)选择性必修第三册 Unit 1-6 课文知识点语法填空(含答案)
- 施耐德ATS48软启动器使用手册
评论
0/150
提交评论