記一次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 ('一二三','四五六')
相關文章
相關標籤/搜索