What is the purpose of system table master..spt_values and what are the meanings of its values?

前端 未结 3 1118
逝去的感伤
逝去的感伤 2020-11-22 10:08

What is the purpose of system table master..spt_values?
Why was it provided and how one should use it?

What are the meanings of its type, low, high values?

3条回答
  •  天命终不由人
    2020-11-22 10:32

    Mostly answered in another question.

    What are the meanings of its type, low, high values?

    Most Types (ie. each specific lookup table, if they were separate) require either Name or Number. Some Types require Low and High columns as well. In Sybase, we have an ErrorNumber column, so the sproc can RAISERROR which is not hard-coded (can be changes with versions, etc).

    It is not "cryptic" unless an enumerated list is "cryptic" to you; it is just a lookup table (all of them, differentiated by the Type column).

提交回复
热议问题