update userinfo set [enable] = 1 where ID <> 'guest' Can be a better option.