Re: How to fill fields with automatically
Posted by:
Peter Brawley ()
Date: July 06, 2012 10:05AM
drop table if exists t;
create table t(s char(16),hash binary(32));
create trigger t before insert on t for each row set new.hash=md5(new.s);
insert into t values('abcde',null);
select * from t;
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.