SQL Server using wildcard within IN

前端 未结 13 660
终归单人心
终归单人心 2020-12-02 20:07

Since I believe this should be a basic question I know this question has probably been asked, but I am unable to find it. I\'m probably about to earn my Peer Pressure badge,

13条回答
  •  有刺的猬
    2020-12-02 20:36

    You could try something like this:

    select *
    from jobdetails
    where job_no like '071[12]%'
    

    Not exactly what you're asking, but it has the same effect, and is flexible in other ways too :)

提交回复
热议问题