Unix Technical Forum

How do I get the name of the Triggering Table

This is a discussion on How do I get the name of the Triggering Table within the Informix forums, part of the Database Server Software category; --> Hi I am looking for a command similar to the DBINFO('') or USER command, that I can call inside ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:57 AM
David Reed
 
Posts: n/a
Default How do I get the name of the Triggering Table



Hi

I am looking for a command similar to the DBINFO('') or USER command,
that I can call inside a Trigger / Stored Proc that can tell me the
table name. I want to know who the triggering table is and if possible
what the current trigger action is?

I came across mi_trigger_tabname(), but that makes no sense to me.

I have Informix 7.x on SCO Unix Openserver 5.x

Regards
David Reed
david.reed@tollink.co.za


sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 09:58 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: How do I get the name of the Triggering Table


All triggers should consist only of a single call to a stored
procedure.

Add the hardcoded name of the table and action to the stored procedure
call.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com