Convert integer to a list of week days

后端 未结 4 1353
借酒劲吻你
借酒劲吻你 2021-01-21 13:45

I have an integer stored in a database (SQLAgent Frequency Interval) This integer is actually the sum of the selected days of the week that the schedule is to run The possible v

4条回答
  •  日久生厌
    2021-01-21 14:28

    I would start by putting it on an user defined function. Also, you can use an and that operates at the bit level to check for it - I think it is &, will update.

    Update 1: It was &, Jason already put up an example. I still recommend to use an user defined function for it :).

提交回复
热议问题