uc_user.user_type 设计思路

USER_TYPE   用户类型0未确认1系统2医生4患者8药师16护士


举例说明:

增加是医生类型

update uc_user set user_type = user_type |2;

去掉医生类型

update uc_user set user_type = user_type^ 2;

查询医生类型

select * from uc_user where  user_type& 2;

猜你喜欢

转载自blog.csdn.net/matthewwu/article/details/80717465
今日推荐