select top 100 State, JoinState, 
(
case
when State = 1 and Joinstate = 0
then 2
when State = 1 and JoinState = 1
then 1
else 0
end
) as usestate
from UserInfo

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
猜你喜欢
  • 2021-10-03
  • 2022-12-23
相关资源
相似解决方案