| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Lola J. Lee Beno | Date: | December 5 2008 5:28pm |
| Subject: | Re: Trying to Create a Trigger | ||
| View as plain text | |||
David Giragosian wrote: > > > I'm no expert, but 'old' is a table, I'm guessing, and it isn't > referenced in the 'from' clause of the query. > > could it be that simple...? > > David > > No . . . 'old' is a virtual table that is the same as the table I'm doing work on. See <http://dev.mysql.com/doc/refman/5.0/en/trigger-syntax.html>. What I need to do is check if jobposts record has jobposts.adsource_id (foreign key) which still exists in adsource table (primary key). If adsource record still exists, then do not proceed with deleting jobpost record - that's what I'm trying to do and thus is what this trigger is supposed to do. -- Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/ "In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time." - Leonardo da Vinci (1452-1519)
| Thread | ||
|---|---|---|
| • Trying to Create a Trigger | Lola J. Lee Beno | 5 Dec |
| • Re: Trying to Create a Trigger | David Giragosian | 5 Dec |
| • Re: Trying to Create a Trigger | Lola J. Lee Beno | 5 Dec |
| • Re: Trying to Create a Trigger | Jim Lyons | 5 Dec |
| • Re: Trying to Create a Trigger | Lola J. Lee Beno | 5 Dec |
| • Re: Trying to Create a Trigger | Martijn Tonies | 5 Dec |
| • Re: Trying to Create a Trigger | Lola J. Lee Beno | 5 Dec |
| • Re: Trying to Create a Trigger | Martijn Tonies | 5 Dec |
| • Re: Trying to Create a Trigger | Lola J. Lee Beno | 5 Dec |
| • Re: Trying to Create a Trigger | Andy Shellam | 5 Dec |
| • Re: Trying to Create a Trigger | Lola J. Lee Beno | 5 Dec |
| • Re: Trying to Create a Trigger | Peter Brawley | 5 Dec |
| • Re: Trying to Create a Trigger | Martijn Tonies | 5 Dec |
| • Re: Trying to Create a Trigger | Wm Mussatto | 5 Dec |
| • Re: Trying to Create a Trigger | Andy Shellam | 6 Dec |
| • Re: Trying to Create a Trigger | Martijn Tonies | 6 Dec |
