SQL Server using wildcard within IN

前端 未结 13 778
终归单人心
终归单人心 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:38

    In Access SQL, I would use this. I'd imagine that SQLserver has the same syntax.

    select * from jobdetails where job_no like "0711*" or job_no like "0712*"

提交回复
热议问题