【正文】
update tempitem set item_name=left(item_name,20) where datalength(item_name)40item_subname(10個(gè)漢字)update tempitem set item_name=left(item_subname,10) where datalength(item_subname)20priceselect * from tempitem where isnumeric(price)=1sale_priceselect * from tempitem where isnumeric(sale_price)=1(C)上面的檢查通過后再將tempitem中處理后的數(shù)據(jù)插入到t_bd_item_info中通過觸發(fā)器生成相應(yīng)數(shù)據(jù), 注意t_bd_supcust_item要手動(dòng)去生成,如客戶有需要?jiǎng)t幫他們生成下Insert into t_bd_item_info(item_no,item_subno,item_name,item_subname,item_clsno,main_supcust,price,sale_price) select * from tempitem. 捆綁商品表商品檔案相應(yīng)字段:bine_sta = 39。 or main_supcst is null檢查供應(yīng)商編號(hào)是否存在select distinct(main_supcust) from tempitem where main_supcust not i