2020-09-30 20:50:59 版本 : 科脉传秤工具报错提示不能将值NULL插入列
作者: 葛清 于 2020年09月30日 发布在分类 / 软件 / 科脉 / 智赢 下,并于 2020年09月30日 编辑
 历史版本

修改日期 修改人 备注
2020-09-30 20:55:52[当前版本] 葛清 其他原因...
2020-09-30 20:51:20 葛清 调整分类
2020-09-30 20:50:59 葛清 创建版本

这是因为商品档案异常造成的,在数据库下列语句检查商品档案问题
\r\nselect *from bi_t_item_info where item_clsno not in (select item_clsno from bi_t_item_cls) ---检查商品类别在类别档案中不存在
\r\nselect *from bi_t_item_info where item_brand not in (select item_clsno from bi_t_item_cls) ---检查品牌在品牌档案里不存在
\r\nselect *from bi_t_item_info where sup_no not in (select supcust_no from bi_t_supcust_info) ---检查供应商在供应商档案里不存在
\r\nselect * from bi_t_item_info where unit_no='' or unit_no is null---没有单位
\r\nselect * from bi_t_item_info where valid_days is null –-保质期为空
\r\nselect * from bi_t_item_info where base_price is null  --批发价为空
\r\n select * from bi_t_item_info where flag2<>'N'  and item_subno is NUll  --生鲜商品国际条码为空
\r\n
\r\n然后根据查询到的结果去修改商品档案
历史版本-目录  [回到顶端]
    慧邦知识分享平台 - free.V4.3.0-439 - 免费版