【问题描述】
通过新通用转换工具导入的数据,现在商品档案中所有的商品简称都为空,能否批量生成简称?
请备份数据库之后执行下列语句:
use hbfsv9
go
update t_bd_item_info set item_name=Ltrim(Rtrim(item_name))
update t_bd_item_info set item_subname=left(Ltrim(Rtrim(item_name)),10) where item_subname=” or item_subname is NULL
未经允许不得转载:思迅软件知识库 » 导入的资料如何批量生成商品简称?