|
-
Re: Try a trigger
[QUOTE][i]Originally posted by lesstjm [/i]
[B]Try a before insert trigger. Check if there are two message text in there already. If there is don't insert. [/B][/QUOTE]
---------------------------------------------------------------------
In the Before Insert Triger:
IF NoOfMessage >= 2 THEN
delete ones which has not the latest date on it;
insert into the new message;
ELSE
insert into the new message;
END IF;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|