Constants and Include files in TSQL

前端 未结 1 1085
轮回少年
轮回少年 2021-01-18 22:10

Is it possible to include a set of \'constant\' values in a TSQL stored procedure? I have a situation where I\'m using an integer field to store bit values and I have small

1条回答
  •  旧巷少年郎
    2021-01-18 22:34

    Off the top of my head, you can't include constants like that.

    How many constants are you talking about, though? Instead of declared constants, I suppose you could create a function for each constant you want, and call the function instead of @CostsCalculated, but I'm not sure how realistic that is.

    Alternately, store the values in a designated table.

    0 讨论(0)
提交回复
热议问题