记一次mysql的长sql查询

今天工做中碰见个需求,在执行SQL语句时,根据需求SQL语句的title字段须要匹配两个值blog 例如:it 第一种书写方式:select * from t_user where title = '一二三' or title = '四五六' and enabled = 1class 第二种书写方式:select * from t_user where title in ('一二三','四五六')
相关文章
相关标签/搜索