管家婆执行SQL“select fullname,sonnum,deleted from Ptype where typeid=‘xxxxx‘时期待返回一行,现在返回了2行

博客内容涉及数据库中商品ID的查询与删除操作,以及ERP系统从V3 9.0到V3IITOP 9.72的升级流程。首先进行数据库备份,然后逐次升级数据库至9.4和9.72,接着卸载旧程序并安装新版本,最后对新版本数据库进行备份和打补丁。
摘要由CSDN通过智能技术生成

查询下表发现同商品ID有两条记录:
select * from PType_Price where PTypeID not in(select typeid from ptype)
select * from PType_STypePrice where PTypeID not in(select typeid from ptype)
select * from PType_Units_Ext where PTypeID not in(select typeid from ptype)
select * from QP_PType_Ext where PTypeID not in(select typeid from ptype)

数据库删除商品档案后,再手动删除下表关联信息
delete from PType_Price where PTypeID not in(select typeid from ptype)
delete from PType_STypePrice where PTypeID not in(select typeid from ptype)
delete from PType_Units_Ext where PTypeID not in(select typeid from ptype)
delete from QP_PType_Ext where PTypeID not in(select typeid from ptype)

管家婆ERP V3从9.0升级到V3II TOP9.72的步骤

1、先备份数据库,ERP V3 9.0 升级到ERP V3 TOP 9.0,运行9.4升级包,升级到ERP V3 TOP 9.4(不升级主程序,只升级数据库。)
3、运行9.72升级包,升级到ERP V3 TOP 9.72(不升级主程序,只升级数据库。)
4、删除ERP V3程序
5、安装ERP V3 TOP 9.72安装包(测试联接原来的数据库)
6、备份9.72数据库,打补丁。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值