update
user_information a
set
@state = (case
when exists(select 1 from state_dd where stateid = a.state))
then a.state
else '0'
end),
state = @state,
cloumnew = @state
update
user_information a
set
@state = (case
when exists(select 1 from state_dd where stateid = a.state)) then state
else '0'
end),
state = @state,
cloumnew = @state
update
user_information a
set
@state = (case
when exists(select 1 from state_dd where stateid = a.state))
then a.state
else '0'
end),
state = @state,
cloumnew = @state
这样有错误,可以再帮忙看看吗?谢谢