|
Posted by NickName on 02/17/06 22:03
env: sql server 2000
objective:
add a formula for an INT column to the FORMULA field or the DEFAULT
VALUE field in DESIGN VIEW.
all of the following attempts failed
IIF (columnName = 0, "1", columnName + 1)
IIF (columnName = 0, 1, columnName + 1)
IIF (0, "1", columnName + 1)
caveat: cannot use IDENTITY
REASON: I'd like have sets of repeatable values for this row, e.g.
set a
1 -- row 1
2 -- row 2
3
4
5
set b
1 -- row 6
2
3
set c
1 -- row 9
2
3
4
Underlying rationale is to support OO design I understand probably it's
going to be huge headache for lots of people down the road but ...
TIA.
Navigation:
[Reply to this message]
|