Dec. 18th, 2009

egorius: (Default)

Самый оригинальный способ присваивания, который мне пока попадался:

select X + sum(nvl(case when Y is not null then Z end, 0))
into X
from dual;

По-моему, прекрасный образчик того, что один мой бывший коллега назвал «консалтерским кодом». Сравниться с ним может разве что decode(1,1,X,X).

Profile

egorius: (Default)
egorius

July 2025

M T W T F S S
  12 3 4 5 6
7891011 12 13
1415 1617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 5th, 2025 08:44 pm
Powered by Dreamwidth Studios