egorius: (Default)
[personal profile] egorius

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

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

March 2025

M T W T F S S
      1 2
34 567 89
1011 121314 1516
17181920212223
24252627 28 29 30
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 29th, 2025 03:13 am
Powered by Dreamwidth Studios