假如你不能保障证输入的is_disabled不为空,为空时存储报错的尴尬问题时可以这样做
SELECT id as user_id ,work_no, name as user_name,office_id from sys_user where del_flag=0 and
(is_disabled ='1' or is_disabled='' or ISNULL(is_disabled) )
假如你不能保障证输入的is_disabled不为空,为空时存储报错的尴尬问题时可以这样做
SELECT id as user_id ,work_no, name as user_name,office_id from sys_user where del_flag=0 and
(is_disabled ='1' or is_disabled='' or ISNULL(is_disabled) )