[ vlade_k6 @ 01.12.2006. 12:46 ] @
Kako automatski svi brojevi koje upisujem u kolonu da bude podeljni sa 10? Mislim na formulu u samoj koloni SQL-a. |
[ vlade_k6 @ 01.12.2006. 12:46 ] @
[ DarkMan @ 02.12.2006. 12:02 ] @
Mozes preko trigera:
Code: -- za tabelu test(id int not null, value decimal(18,2) null) create trigger trig_test_insert on test instead of insert as begin insert into test(id, value) select id, value/10 from inserted end [ logic_rabbit @ 04.12.2006. 06:55 ] @
Napravis funkciju za to i upises u design modu kad kreiras tabelu u polje formula rutinu za pozivanje funkcije.
Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|