-- 用户 中文名称 改编码
set fj.ct_incept_p =(
select
case
when usr.user_name='wangwei2' then 164
when usr.user_name='wangwei1' then 163
else 0 end user_name
from sys_user_sj usr where usr.user_name=fj.ct_incept_p
)
-- 单位 中文改编码
update tb_task_copy1 fj
set fj.ct_incept_p =(
select
case
when d.dept_name='第一单位' then 1
when d.dept_name='第二单位' then 2
else 0 end dept_name
from sys_dept d where d.dept_name=fj.ct_incept_p
数据同步,中文换编码、编码替换中文
最新推荐文章于 2024-07-20 17:45:06 发布