tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

Hádanka (Firebird)

13 Aug 2006 1 mins Firebird

Mějme takovéto zadání:

create table new (old integer);
set term ^ ;
create trigger new_bu1 for new
active before update position 0
as
begin
  select new.old from new where old.old = new.old into new.old;
end^
set term ; ^
insert into new (old) values (1);
update new set old = 2;
select * from new;

Jaký bude výsledek? 😄

Pozn.: Vymyslel Milan Babuskov na firebird-suport listu.

Profile Picture Jiří Činčura is an independent developer, .NET, C# and Firebird expert, focusing on data and business layers, language constructs, parallelism, databases and performance. He's Microsoft Most Valuable Professional and frequent speaker. You can read his articles, guides and tips and tricks at www.tabsoverspaces.com.