Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两列,last_usage并且previous_last_usage.
last_usage
previous_last_usage
我想创建第三列,seq_index,每次last_usage <> previous_last_usage满足条件时递增 1。
seq_index
last_usage <> previous_last_usage
这可能吗?
例子:
LAST_USAGE PREVIOUS_LAST_USAGE SEQ_INDEX 1 1 0 0 1 1 0 0 1 0 0 1 1 0 2 1 1 2 0 1 3 0 0 3 0 0 3