Triggers in MySQL 5
February 04, 2005
Peter Gulutzan shows a sneak peak of Trigger support in MySQL 5 alpha in his article MySQL Triggers Tryout on O'Reilly OnLamp.
Tweet
Trackbacks
Trackback Address: 211/5162A0DA3DE6A59344994E5AEF5D3397
Comments
On 08/05/2005 at 2:22:56 AM EDT Pheath Rithy wrote:
1
You sent updating in MySQL 5.x , Documentation in MySQL all version , Syntax Trigger and Path Downlaod Graphic MySQL 5.x
On 04/09/2007 at 3:26:39 AM EDT Naveen Tripathi wrote:
2
CREATE OR REPLACE TRIGGER tr_id before insert on comment for each row declare @maxid int; @mon int(2); @yr varchar(4); @finyr varchar(10); begin set mon:=to_number(to_char(:new.dt,'mm')); set yr:=to_char(:new.dt,'yy'); if mon>=4 then set finyr:=trim(yr)||'-'||trim(to_char(to_number(yr)+1,'00')); else set finyr:=to_char(to_number(yr)-1)||'-'||yr; end if; select max(comnocode) into maxid from comment; if maxid is null then set :new.compno:=1; set :new.comnocode:=finyr||'1'; else set :new.compno:=maxid+1; set :new.comnocode:='w'||trim(finyr)||'/'||trim(to_char(maxid+1,'00')); end if; end;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TRIGGER tr_id before insert on comment for each row declare set @maxid int' at line 1
On 11/05/2007 at 2:40:31 AM EST Velmurugan wrote:
3
I think CREATE or REPLACE only works in sql only
On 01/02/2009 at 4:04:02 AM EST Anonymous wrote:
4
gggggggggggggggggggggggggggggggg j j j jj j j j j j j j j j j j j j j l l ll o o i i i i i i
On 08/21/2009 at 2:40:54 PM EDT Jose Luis wrote:
5
The only host I found so far to support mysql triggers on shared packages is at http://www.placehost.net. I hope more will come. This is probably because hosting providers wait for plesk or cpanel to support such versions of PHP/MySql and those two are moving slower than anything else. PHP 5.2.9 came out recently and a lot of bugs were fixed yet nor cpanel or plesk supports this version. Mysql releases 5.4 soon so triggers will no longer need the super user privilege to be added, but, as always, how much time will the control panels need to support it?
On 07/10/2011 at 5:04:38 PM EDT Kerryn wrote:
6
I'm impressed! You've maanged the almost impossible.
Post a Comment
Recent Entries
- Writing Secure CFML cfObjective 2013 Slides
- Upgrading to Java 7 on Linux
- J2EE Sessions in CF10 Uses Secure Cookies
- Learn about ColdFusion Security at cfObjective 2013
- Session Loss and Session Fixation in ColdFusion
- FuseGuard 2.3 Released
- CKEditor Spell Checker Plugin
- Adobe Says Go Ahead and Upgrade your ColdFusion JVM


add to del.icio.us


