如果是新开的分店,新建分店仓库的时候可以选择其他分店价格类型,已经在使用的分店是无法进行同步的,如果用语句同步可能会导致部分价格未同步更新的问题,语句如下,注意备份数据库执行。 ---01代表要修改更新的分店编码。02代表要取价的分店编码 delete t_pc_branch_price where branch_no='01' insert into t_pc_branch_price ( [branch_no] ,[item_no] ,[supcust_no] ,[sale_way] ,[price] ,[base_price] ,[sale_price] ,[vip_price] ,[sup_ly_rate] ,[branch_price] ,[branch_sale] ,[com_flag] ,[item_stock] ,[base_price1] ,[base_price2] ,[base_price3] ,[base_price4] ,[direct] ,[status] ,[auto_flag] ,[main_sale_flag] ,[p_com_flag] ,[dept_clsno] ) select '01' ,[item_no] ,[supcust_no] ,[sale_way] ,[price] ,[base_price] ,[sale_price] ,[vip_price] ,[sup_ly_rate] ,[branch_price] ,[branch_sale] ,'0' ,[item_stock] ,[base_price1] ,[base_price2] ,[base_price3] ,[base_price4] ,[direct] ,[status] ,[auto_flag] ,[main_sale_flag] ,[p_com_flag] ,[dept_clsno] from t_pc_branch_price where branch_no='02'