Skip navigation links

MySQL Forums :: Newbie :: How to fill fields with automatically


Advanced Search

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;

Options: ReplyQuote


Subject Written By Posted
How to fill fields with automatically Rieqy Erysya 07/03/2012 03:40AM
Re: How to fill fields with automatically Peter Brawley 07/03/2012 10:07AM
Re: How to fill fields with automatically Rieqy Erysya 07/04/2012 06:40AM
Re: How to fill fields with automatically Peter Brawley 07/04/2012 08:26AM
Re: How to fill fields with automatically Rieqy Erysya 07/04/2012 09:48AM
Re: How to fill fields with automatically Peter Brawley 07/04/2012 10:18AM
Re: How to fill fields with automatically Rieqy Erysya 07/05/2012 09:49AM
Re: How to fill fields with automatically Peter Brawley 07/05/2012 10:37AM
Re: How to fill fields with automatically Rieqy Erysya 07/06/2012 09:41AM
Re: How to fill fields with automatically Peter Brawley 07/06/2012 10:05AM
Re: How to fill fields with automatically Rieqy Erysya 07/06/2012 05:42PM
Re: How to fill fields with automatically Peter Brawley 07/06/2012 06:54PM
Re: How to fill fields with automatically Rieqy Erysya 07/06/2012 09:47PM
Re: How to fill fields with automatically Peter Brawley 07/07/2012 03:15AM


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.