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

September 2025

M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 11th, 2025 03:27 pm
Powered by Dreamwidth Studios